简体   繁体   English

Pip 无法在 ubuntu 服务器上安装任何东西

[英]Pip cannot install anything on ubuntu server

I had deleted an existing virtual environment.我删除了一个现有的虚拟环境。 I created a new one and activated it.我创建了一个新的并激活了它。 Now I am trying to install site packages using现在我正在尝试使用

pip install -r requirements.txt

But I keep getting the error但我不断收到错误

Cannot fetch index base URL https://pypi.python.org/simple/ Could not find any downloads that satisfy the requirement BeautifulSoup==3.2.1 (from -r requirements.txt (line 1))无法获取索引基本 URL https://pypi.python.org/simple/找不到任何满足 BeautifulSoup==3.2.1 要求的下载(来自 -r requirements.txt(第 1 行))

Now I know that the packages are really old but this is running on python 2.7.6.现在我知道这些包真的很旧,但它是在 python 2.7.6 上运行的。 I am also not able to install anything through pip.我也无法通过 pip 安装任何东西。 I have tried我努力了

pip install numpy

But it shows the same errors.但它显示了相同的错误。 As per the similar questions answered before the suggestion is to use https://pypi.python.org which I have already done but still facing these errors.根据建议之前回答的类似问题是使用https://pypi.python.org ,我已经完成了但仍然面临这些错误。 Would love to hear your suggestions.很想听听您的建议。

Might be a problem with having an old version of pip.使用旧版本的 pip 可能有问题。

Try pip install --upgrade pip and then try installing the requirements again.尝试pip install --upgrade pip然后再次尝试安装需求。

Problem is pip tries to create lockfile in cache directory问题是 pip 尝试在缓存目录中创建锁文件

Try running pip install --upgrade pip --no-cache-dir尝试运行 pip install --upgrade pip --no-cache-dir

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM