python pip 安装 requirements.txt 报错

Posted ponponon

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python pip 安装 requirements.txt 报错相关的知识,希望对你有一定的参考价值。

错误描述

pip install requirements.txt 
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement requirements.txt (from versions: none)
ERROR: No matching distribution found for requirements.txt
vagrant@vagrant:/vagrant$ sudo pip install requirements.txt 

解决办法

少了 -r 参数,换成如下命令

pip install -r requirements.txt 

以上是关于python pip 安装 requirements.txt 报错的主要内容,如果未能解决你的问题,请参考以下文章

linux和windows下安装python拓展包及requirement.txt安装类库

02-01 Python 安装与pip

pip安装python包出错:Could not find a version that satisfies the requirement skimage (from versions: )(示例代

python 安装多个包/pip用法

Python第三方模块安装,仅用 requirements.txt够了吗?pip-compile 试试

pip安装ujson报错: error:Microsoft Visual C++ 14.0 is required