[Note] A story about not being able to break through a proxy with pip

Premise

・ Windows7 64bit ・ Python3.x (introduced in Anaconda) ・ There is a proxy

In the above environment, Python packages that cannot be installed by conda install, I tried to install it with pip, but it was blocked by a proxy and melted the time.

Cannot break through with --proxy option

This is the first method I tried.

pip install piyopiyo --proxy http://user:[email protected]:8080

If you google with "pip proxy", it will be displayed at the top. However, the above did not solve the problem in the environment where it was implemented.

I could do it with environment variables

The following are hits alongside the types attached to the above options.

set HTTP_PROXY=http://user:[email protected]:8080
set HTTPS_PROXY=http://user:[email protected]:8080

Doing

pip install piyopiyo

How to. I haven't tried it, but Linux looks like this?

export HTTP_PROXY=http://user:[email protected]:8080
export HTTPS_PROXY=http://user:[email protected]:8080

pip seems to be using port 443 to get the package (as an error message), Maybe the HTTPS_PROXY setting is the decisive factor ...?

For the time being, even a memorandum.

Recommended Posts

[Note] A story about not being able to break through a proxy with pip
The story of not being able to run pygame with pycharm
A story about installing matplotlib using pip with an error
A story about how to deal with the CORS problem
A story about go get but stumbling immediately after being assigned with command not found
[Note] A story about trying to override a class method with two underscores in Python 3 series.
A story about adding a REST API to a daemon made with Python
A story about machine learning with Kyasuket
A story that sometimes does not work if pip is up to date
A story about implementing a login screen with django
How to use pip3 under proxy environment Note
A note about checking modifiers with Max Plus
A story about how Windows 10 users created an environment to use OpenCV3 with Python 3.5
A story about making 3D space recognition with Python
A story about using Resona's software token with 1Password
A story about predicting exchange rates with Deep Learning
A story about making Hanon-like sheet music with Python
A story about trying a (Golang +) Python monorepo with Bazel
A story about struggling to loop 3 million ID data
A story about how theano was moved with TSUBAME 2.0
A story about stumbling through PATH after installing anaconda
Machine learning A story about people who are not familiar with GBDT using GBDT in Python
[Django] A story about getting stuck in a swamp trying to validate a zip with form [TDD]
A note about __call__
A note about subprocess
A note about mprotect (2)
A note about hitting the Facebook API with the Python SDK
[Linux] A story about mounting a NAS through a firewall using NFS
A story about how to specify a relative path in python.
A story about competing with a friend in Othello AI Preparation
[python] A note when trying to use numpy with Cython
A story that stumbled when using pip in a proxy environment
Steps to install a Git cloned package locally with pip
A story about an amateur making a breakout with python (kivy) ②
A story about an amateur making a breakout with python (kivy) ①
A story about making a tanka by chance with Sudachi Py
A story about trying to implement a private variable in Python.
A story about a python beginner stuck with No module named'http.server'
I was addicted to not being able to get an email address from google with django-allauth authentication