Skip to content

Instantly share code, notes, and snippets.

Python Virtualenvs

This is the method I use to install different versions of python on different virtualenvs, which is also compatible with spacemacs autocompletion.

Installation (Arch family)

Install pyenv and pyenvvirtualenvwrapper (do not install pyenv-virtualenv)

If you already installed python-virtualenvwrapper from pacman or pip directly, remove it. These steps only work well on a fresh installation.

pacman -S pyenv