adding --trusted-host to pycharm package installer

∥☆過路亽.° 提交于 2020-01-06 14:16:23

问题


I am trying to add --trusted-host to Pycharm (2018.2.5 community editions) package installer. However it does not work.

for exampl: python -m pip install scipy --trusted-host pypi.org

I even tried to add "--trusted-host pypi.org " in the option. Still doesn't work.


回答1:


In your output it shows that you are only supplying

--trusted-host

as the option and, the way PyCharm has built the command, it has tried to execute

pip install --trusted-host scipy

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.

Adding

--trusted-host pypi.org

as the option works for me.



来源:https://stackoverflow.com/questions/59103592/adding-trusted-host-to-pycharm-package-installer

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!