Python's pip in a docker container for easy pip install
when you just can’t seem to get pip
installed.
- Run
docker run --rm -it -v $(pwd)/opt:/opt joshwhatk/pip
- Install all of your things, e.g.
pip install virtualenv
- Run
which virtualenv
- Move all of the executables into
/opt
.- e.g.
mv /usr/bin/virtualenv /opt/
- e.g.
- Exit from the container.
- Move the executables from
$(pwd)/opt
into/usr/local/bin
and you are good to go!