问题描述
我正在尝试将 --trusted-host 添加到 Pycharm(2018.2.5 社区版)软件包安装程序.但是它不起作用.
I am trying to add --trusted-host to Pycharm (2018.2.5 community editions) package installer. However it does not work.
例如:python -m pip install scipy --trusted-host pypi.org
for exampl: python -m pip install scipy --trusted-host pypi.org
我什至尝试在选项中添加--trusted-host pypi.org".还是不行.
I even tried to add "--trusted-host pypi.org " in the option. Still doesn't work.
推荐答案
在你的输出中它表明你只提供
In your output it shows that you are only supplying
--trusted-host
作为选项,并且 PyCharm 构建命令的方式,它尝试执行
as the option and, the way PyCharm has built the command, it has tried to execute
pip install --trusted-host scipy
因此出现错误您必须至少提供一项安装要求".这与您刚刚尝试不带参数执行 pip install
时的错误相同.它已将 scipy
解释为 --trusted-host
选项的一部分,因此您不会尝试安装任何东西.
hence the error "You must give at least one requirement to install". This is the same error as if you had just tried to execute pip install
with no arguments. It has interpreted scipy
as part of the --trusted-host
option, therefore you're not trying to install anything.
添加
--trusted-host pypi.org
因为这个选项对我有用.
as the option works for me.
这篇关于将 --trusted-host 添加到 pycharm 软件包安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!