Guest User

Untitled

a guest
May 27th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. * You can ignore SSL errors by setting pypi.org and files.pythonhosted.org as trusted hosts.
  2. ```
  3. pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org <package_name>
  4. ```
  5. Note: Sometime during April 2018, the Python Package Index was migrated from pypi.python.org to pypi.org. This means "trusted-host" commands using the old domain no longer work.
  6.  
  7. * Permanent Fix:
  8. You may want to add the trusted hosts and proxy to your config file.
  9. ```
  10. pip.ini (Windows) or pip.conf (unix)
  11.  
  12. [global]
  13. trusted-host = pypi.python.org
  14. pypi.org
  15. files.pythonhosted.org
  16. ```
Add Comment
Please, Sign In to add comment