sudo apt-get install --no-install-recommends python3-pip# Upgrade Pip
sudo pip3 install --upgrade pip# Basic libraries
sudo pip3 install \
progressbar2 \
requests \
Cython \
pylint \
autopep8 \
pytest \
pydocstyleIf you aren't familiar with virtual environments, check out this article on RealPython.
Install virtualenv and virtualenvwrapper:
sudo pip3 install \
virtualenv \
virtualenvwrapperTo finish, we need to update the ~/.profile file (similar to .bashrc or .bash_profile).
Copy and paste the following commands:
read -r -d '' PROFILE <<"EOF"
# virtualenv and virtualenvwrapper
export WORKON_HOME=${HOME}/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
source /usr/local/bin/virtualenvwrapper.sh
EOF
# Create the ~/.profile file
echo "${PROFILE}" >> ${HOME}/.profile# Update the terminal
source ${HOME}/.profile