问题
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