I need to encapsulate a project using python26

59 views
Skip to first unread message

Como los Pajarillos EnLibertad

unread,
Apr 24, 2021, 11:46:35 AM4/24/21
to virtualenv
Hello, I have a problem with old python26, the project is very old and it needs run in server where does not use python26 so my plan is encapsulate python inside the project using virtual environment but python26 does have pip to install venv. Do you know an easy way top perform  this kind the installation in any environment(may has or not install python )?

Before hand thanks very much for your support 

Tres Seaver

unread,
Apr 27, 2021, 2:00:41 PM4/27/21
to python-v...@googlegroups.com, Como los Pajarillos EnLibertad
On 4/24/21 11:46 AM, Como los Pajarillos EnLibertad wrote:
Hello, I have a problem with old python26, the project is very old and it needs run in server where does not use python26 so my plan is encapsulate python inside the project using virtual environment but python26 does have pip to install venv. Do you know an easy way top perform  this kind the installation in any environment(may has or not install python )?


I don't believe that 'virtualenv' library supports your usecase (encapsulating
a full Python environment on a host without Python):  it requires
an actual installation of the required version of Python to be present on the system.

If 'python2.6' *is* present on your system, then you could try downloading a 2.6-
compatible version and running its 'virtualenv.py' script directly, e.g.:

---------------------------------- %< -----------------------------
$ curl --location --output virtualenv-15.2.0.tar.gz \
    https://github.com/pypa/virtualenv/tarball/15.2.0
$ tar xvfz virtualenv-15.2.0.tar.gz
$ cd pypa-virtualenv-61255cf/  # path differs for other releases
$ python2.6 virtualenv.py /path/to/virtualenv
---------------------------------- %< -----------------------------

Note that I don't have a 'python2.6' on my system, so I couldn't test the last line,
but it matches my memory, and the legacy docs[1]



Tres.

[1] https://virtualenv.pypa.io/en/legacy/installation.html
Reply all
Reply to author
Forward
0 new messages