Following this guide
Have upgraded pip as recommended.
Added the python Factory repo for 15.1.
Installed pyenv from the openSUSE repositories.
Have verified all the above seems to be working fine, have created virtual environments using venv and pyenv.
But, as is well documented, pyenv by itself and venv support only Python 3.3 and later.
To support earlier python including python2, the recommended procedure is to install a pyenv-virtualenv plugin for pyenv as described next.
Although undocumented, I found the pyenv plugin directory at
so as described I cloned the github repository for pyenv-virtualenv into a named subdirectory in this location. There is a minor descrepancy in that the documentation describes a user directory but because pyenv is installed from the openSUSE repositories, it’s in a system directory.
git clone https://github.com/pyenv/pyenv-virtualenv.git /usr/lib/pyenv/plugins/pyenv-virtualenv
But, when attempting to create a virtual environment using this plugin, it doesn’t work, saying that “virtualenv” is not a recognized command
pyenv virtualenv 2.7 testproject-2.7pyenv: no such command `virtualenv'
I understand that if I cannot get this to work, I use the fallback of using the legacy virtualenv, but am trying to set up according to current recommended “Best Practices”