Why does pip fail when installing local egg repository?

dry picture dry · Sep 20, 2011 · Viewed 22.2k times · Source

I am working on Windows 7.I have created a python egg using distutils. Now I try to install this egg in a virtual environment using pip 1.0.2 using the following command:

Then I create a virtual environment myVirtualEnv I activate it using activate.bat then execute the following command:

pip install path_to_my_local_folder#eggName

This creates a copy of my egg in my myVirtualEnv\build directory but I have the following error:

IOError: [Errno 2] No such file or directory: path_of_my_virtualEnv\build\PyEqdR\setup.py

Do you know why pip is looking for the setup.py file. Should I include it in the egg ?

Answer

wRAR picture wRAR · Sep 20, 2011

http://www.pip-installer.org/en/latest/other-tools.html#pip-compared-to-easy-install

pip doesn’t do everything that easy_install does. Specifically:

It cannot install from eggs. It only installs from source.