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
--
You received this message because you are subscribed to the Google Groups
"virtualenv" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to python-virtualenv+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/python-virtualenv/f38fe88b-bc4f-a595-8519-027cf3135224%40gmail.com.