adding –trusted-host to pycharm package installer

Question:

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

enter image description here

I even tried to add “–trusted-host pypi.org ” in the option. Still doesn’t work.

enter image description here

Asked By: H'H

||

Answers:

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.

Answered By: David Buck

You can also add the other hostname:
–trusted-host pypi.org –trusted-host files.pythonhosted.org

Answered By: Bastet
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.