Skip to content

Instantly share code, notes, and snippets.

View diversen's full-sized avatar

Dennis Iversen diversen

View GitHub Profile
@diversen
diversen / install-virtualenv
Last active February 23, 2022 08:18
Install virtualenv locally without pip or being root or doing sudo
# 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'