Skip to content

Instantly share code, notes, and snippets.

@diversen
diversen / install-virtualenv
Last active Feb 23, 2022
Install virtualenv locally without pip or being root or doing sudo
View install-virtualenv
# This works with e.g. python 3.7
wget https://github.com/pypa/virtualenv/archive/refs/tags/16.7.10.tar.gz -O virtualenv-16.7.10.tar.gz
tar xvfz virtualenv-16.7.10.tar.gz
rm virtualenv-16.7.10.tar.gz
mv virtualenv-16.7.10 ~/.virtualenv
echo >> ~/.bashrc
echo "alias virtualenv='python $HOME/.virtualenv/virtualenv.py'" >> ~/.bashrc
echo 'Now run: source ~/.bashrc'