尝试使用 pip 安装包时,“=”不是有效的运算符
'=' is not a valid operator when trying to install packages with pip
我正在尝试从 .txt 文件安装一些软件包。当我尝试安装它们时,pip
正在读取文件但说 '=' is an invalid operator
。我也尝试将 '='
更改为 '=='
但没有成功。
例如,我正在尝试安装 aniso8601=8.0.0=py_0
,但一直出现错误:
ERROR: Invalid requirement: 'aniso8601=8.0.0=py_0' (from line 4 of requirements.txt)
Hint: = is not a valid operator. Did you mean == ?
Edit: I was getting the list of dependencies from someone else and the py_0 portion was an oversight by me as it was something added that they left on the end of their list.
我不确定你为什么放 =py_0
以及它的含义,但这是正确要求文件的示例:
Jinja2==2.10.1
qtawesome==0.7.2
numpy==1.18.3
matplotlib==3.2.2
要安装所有依赖项,请使用 pip install -r filename.txt
要创建需求文件,请使用 pip freeze > filename.txt
我正在尝试从 .txt 文件安装一些软件包。当我尝试安装它们时,pip
正在读取文件但说 '=' is an invalid operator
。我也尝试将 '='
更改为 '=='
但没有成功。
例如,我正在尝试安装 aniso8601=8.0.0=py_0
,但一直出现错误:
ERROR: Invalid requirement: 'aniso8601=8.0.0=py_0' (from line 4 of requirements.txt)
Hint: = is not a valid operator. Did you mean == ?
Edit: I was getting the list of dependencies from someone else and the py_0 portion was an oversight by me as it was something added that they left on the end of their list.
我不确定你为什么放 =py_0
以及它的含义,但这是正确要求文件的示例:
Jinja2==2.10.1
qtawesome==0.7.2
numpy==1.18.3
matplotlib==3.2.2
要安装所有依赖项,请使用 pip install -r filename.txt
要创建需求文件,请使用 pip freeze > filename.txt