为什么在安装本地egg存储库时pip失败? [英] Why does pip fail when installing local egg repository?

查看:100
本文介绍了为什么在安装本地egg存储库时pip失败?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在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 ?

推荐答案

pip并没有easy_install所能做的所有事情.具体来说:

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

它不能从鸡蛋安装.它只能从源安装.

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

这篇关于为什么在安装本地egg存储库时pip失败?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆