

How to upgrade virtualenv to use a new python system?
source link: https://www.codesd.com/item/how-to-upgrade-virtualenv-to-use-a-new-python-system.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

How to upgrade virtualenv to use a new python system?
I had installed virtualenv on the system with python2.6.
I upgraded the system python to 2.7, but the virtualenv still has affinity for python2.6.
I tried easy_install --upgrade virtualenv, but that didn't change anything.
Does anyone know how to update the system installed virtualenv to use the new python2.7 on the system?
The pip, easy_install and virtualenv commands are installed per python version (python 2.6, 2.7, etc).
You'll have to install a new copy of easy_install
for your python version (see the setuptools installation instructions, or do the same for pip
by installing it directly.
You can then use this new installation, tied to python 2.7, to install virtualenv
.
The new commands are likely, to have been installed as pip-2.7
or easy_install-2.7
; see the setuptools
documentation on multiple python versions, pip
and easy_install
themselves are likely to be a symlinks to their 2.6 versions. Try and run pip-2.7 install virtualenv
or easy_install-2.7 virtualenv
.
If that doesn't work for you, you can always use the -m
switch instead:
python2.7 -m easy_install virtualenv
Related Articles
How to calculate the expression using sympy in python
How to remove stop words using nltk or python
How to invert a list using recursion in Python?
How to split a string using 2 parameters - python 3.5
How to find a coordinate using a Cartesian coordinate system with just an index?
How to draw a histogram using Matplotlib in Python with a list of data?
How to send a POST using 2-legged python oauth2?
How to combine CSV files using shell script / Python
How to configure PATH to use Java and Python simultaneously
How to remove a module using Anaconda in Python
Using a java python system
How do I use the new version of Java on osx?
How to upgrade an MSI installation using the Inno Setup installer?
Unable to run & ldquo; Hello world & rdquo; in Google Apps Script. Get an error message about using the new version of Google Sheets
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK