为什么在安装本地egg存储库时pip失败? [英] Why does pip fail when installing local egg repository?
问题描述
我正在Windows 7上工作.我已经使用distutils创建了一个python egg.现在,我尝试使用以下命令使用pip 1.0.2在虚拟环境中安装此鸡蛋:
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:
然后我创建一个虚拟环境 myVirtualEnv ,我使用activate.bat激活它,然后执行以下命令:
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
这会在我的 myVirtualEnv \ build 目录中创建我的蛋的副本,但是出现以下错误:
This creates a copy of my egg in my myVirtualEnv\build directory but I have the following error:
IOError:[错误2]没有此类文件或目录:path_of_my_virtualEnv \ build \ PyEqdR \ setup.py
IOError: [Errno 2] No such file or directory: path_of_my_virtualEnv\build\PyEqdR\setup.py
您知道为什么pip在寻找setup.py文件.我应该把它包括在鸡蛋里吗?
Do you know why pip is looking for the setup.py file. Should I include it in the egg ?