Open markojak opened 5 years ago
From here: https://github.com/pypa/pip/issues/5599
It may be that you're simply running the "wrong" wrapper script. Maybe you did a --user install of a new version of pip, but your PATH is set to run the system version of the wrapper rather than the user-local one installed with pip. In that case, you can simply fix your PATH. That's usually the issue for people who do pip install --user --upgrade pip and get the pip.main error.
I've done the following fixes
I think (2) is relevant because do you really need the user flag given that this is running in a Docker environment? The --user flag doesn't become a problem in a virtual environment either so moot point I think.
Not sure if this breaks something else that was intended but will do a PR anyways
Trying this out and hitting this error on Mac OSX (Mojave) Docker 18.06.1-CE