Skip to content

Instantly share code, notes, and snippets.

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 -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/'" >> ~/.bashrc
echo 'Now run: source ~/.bashrc'