Skip to content
Home » Uncategorized » DOCKER PYTHON PIP INSTALL REQUIREMENTS

DOCKER PYTHON PIP INSTALL REQUIREMENTS

Without interrupting your existing environment I did this by creating an anaconda environment and installing python packages through pip this way

Install and Start Anaconda
docker run -i -t -p 8888:8888 continuumio/miniconda3 /bin/bash -c “/opt/conda/bin/conda install jupyter -y –quiet && mkdir /opt/notebooks && /opt/conda/bin/jupyter notebook –notebook-dir=/opt/notebooks –ip=’*’ –port=8888 –no-browser –allow-root”

Open your browser
Navigate to http://YOURIP:8888

Click New

Click Terminal

When the terminal opens, enter your package / version this way to install it, replacing pandas and version with the one you are trying to install
pip install pandas==1.5.1

That’s it. You are now functional.