Instructions on getting virtual env working with pyenv and older version of python.

Aaron Nel
2017-04-19 17:18:39 +02:00
parent c4e1eb4eca
commit 62dad1fc82

@@ -0,0 +1,50 @@
Support was dropped from version 1.1
https://virtualenv.pypa.io/en/latest/changes/#id38
Install that which works for the 2.4 line of python
https://pypi.python.org/pypi/pip/1.1
I guess I will need to double check every pip package version for installation into 2.4
$ pyenv global 2.4.3
$ pip install pip==1.1
Requirement already satisfied (use --upgrade to upgrade): pip==1.1 in /home/aaron/.pyenv/versions/2.4.3/lib/python2.4/site-packages/pip-1.1-py2.4.egg
Cleaning up...
pip install virtualenv==1.7.2
Downloading/unpacking virtualenv==1.7.2
Downloading virtualenv-1.7.2.tar.gz (2.2Mb): 2.2Mb downloaded
Running setup.py egg_info for package virtualenv
warning: no previously-included files matching '*' found under directory 'docs/_templates'
warning: no previously-included files matching '*' found under directory 'docs/_build'
Installing collected packages: virtualenv
Running setup.py install for virtualenv
warning: no previously-included files matching '*' found under directory 'docs/_templates'
warning: no previously-included files matching '*' found under directory 'docs/_build'
Installing virtualenv script to /home/aaron/.pyenv/versions/2.4.3/bin
Installing virtualenv-2.4 script to /home/aaron/.pyenv/versions/2.4.3/bin
Successfully installed virtualenv
Cleaning up...
$ pyenv virtualenv 2.4.3 python243
New python executable in /home/aaron/.pyenv/versions/2.4.3/envs/python243/bin/python2.4
Also creating executable in /home/aaron/.pyenv/versions/2.4.3/envs/python243/bin/python
Installing setuptools.............done.
Installing pip...............done.
Installing pip from https://bootstrap.pypa.io/get-pip.py...
Unknown option: -s
usage: python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
error: failed to install pip via get-pip.py
pyenv virtualenv 2.4.3 python243
pyenv-virtualenv: `/home/aaron/.pyenv/versions/python243' already exists.
This still fails, but at lease the venv is now working.
. $PYENV_ROOT/versions/python243/bin/activate
More reading.
https://github.com/pyenv/pyenv/issues/838