为什么我不能使用pip从PyPI安装模块,但可以使用easy-install安装它?

2024-05-29 04:38:05 发布

您现在位置:Python中文网/ 问答频道 /正文

{I}正在尝试安装python和python服务器的端口。Waferslim在Python包库PyPI中,但是当我尝试使用pip安装它时,它不起作用,我得到一个package not found错误:

(test) C:\Python27\VirtualEnvs\test\Scripts>pip install waferslim
Downloading/unpacking waferslim
Could not find any downloads that satisfy the requirement waferslim
Cleaning up...
No distributions at all found for waferslim

但是如果我尝试用easy_install安装它,它就安装正确了。为什么会这样?有没有办法我可以用Pip而不是easy-tu来安装它?我写了一个要求.txt包含我项目的所有依赖项的文件,但由于waferslim,运行pip install -r requirements.txt失败。在


Tags: installpip端口test服务器txtpypipackage

热门问题