6

How to upgrade virtualenv to use a new python system?

 3 years ago
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.
neoserver,ios ssh client

How to upgrade virtualenv to use a new python system?

advertisements

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

I need a calculate below expression using sympy in python? exp = '(a+b)*40-(c-a)/0.5' In a=6, b=5, c=2 this case how to calculate expression using sympy in python? Please help me.The documentation is here: http://docs.sympy.org/. You should really re

How to remove stop words using nltk or python

So I have a dataset that I would like to remove stop words from using stopwords.words('english') I'm struggling how to use this within my code to just simply take out these words. I have a list of the words from this dataset already, the part i'm str

How to invert a list using recursion in Python?

I want to have a function that will return the reverse of a list that it is given -- using recursion. How can I do that?Append the first element of the list to a reversed sublist: mylist = [1, 2, 3, 4, 5] backwards = lambda l: (backwards (l[1:]) + l[

How to split a string using 2 parameters - python 3.5

I was wondering if there was a way to use a .split() function to split a string up using 2 parameters. For example in the maths equation: x^2+6x-9 Is it possible to split it using the + and -? So that it ends up as the list: [x^2, 6x, 9]This will do

How to find a coordinate using a Cartesian coordinate system with just an index?

How do I find a coordinate using cartesian coordinate system with just an index? For instance, 4 points to 1,2 and 9 points to 1,3. Assume that the blocks will always wrap around 1,1. I'm not married to the order of the grid, but I want to call the l

How to draw a histogram using Matplotlib in Python with a list of data?

I am trying to plot a histogram using the matplotlib.hist() function but I am not sure how to do it. I have a list probability = [0.3602150537634409, 0.42028985507246375, 0.373117033603708, 0.36813186813186816, 0.32517482517482516, 0.4175257731958763

How to send a POST using 2-legged python oauth2?

I have a working GET using 2-legged oauth2 in python. Here is the WORKING GET code: the imports: import oauth2 import urllib #for url-encode import urllib2 #for getting and receiving data from server import time #Unix timestamp import oauth2 the call

How to combine CSV files using shell script / Python

This question already has an answer here: Left outer join on two files in unix 2 answers I have two CSV files input.csv: id,scenario,data1,data2,result 1,s1,300,400,"{s1,not added}" 2,s2,500,101,"{s2 added}" 3,s3,600,202, output.csv id

How to configure PATH to use Java and Python simultaneously

I was just wondering if there was any way to set to %PATH% variables so I can compile my Java code, along with my Python code? For instance.. PATH is currently C:\ ... JDK_bin blah blah, and that's it. To run my python code, I have to change my path

How to remove a module using Anaconda in Python

I have a package called 'Prody' which is installed under anaconda directories: $ python Python 2.7.8 |Anaconda 2.0.1 (x86_64)| (default, Jul 2 2014, 15:36:00) [GCC 4.2.1 (Apple Inc. build 5577)] on darwin Type "help", "copyright", &quo

Using a java python system

Is there an equivalent to Python's popen2 in Java?I believe the Process object is what you're looking for. Javadoc here. You use it something like Process myProcess = System.getRuntime().exec("cmd here")); It allows you to get the standard and e

How do I use the new version of Java on osx?

I am following this tutorial on rJava: http://cran.r-project.org/web/packages/helloJavaWorld/vignettes/helloJavaWorld.pdf I have made all the files as specified in the tutorial and installed the helloJavaWorld package, but once I run the helloJavaWor

How to upgrade an MSI installation using the Inno Setup installer?

We recently moved from a Visual Studio setup msi-based installer to Inno Setup but we're having issues with upgrading existing installs using this new installer. I know that the upgrade code remains static even as the product code changes every updat

Unable to run & ldquo; Hello world & rdquo; in Google Apps Script. Get an error message about using the new version of Google Sheets

I am going through the book Google Sheets Programming with Google Apps Script by Michael Maguire and I am trying to run the following Hello World-type function: function sayHelloAlert() { // Declare a string literal variable. var greeting = 'Hello wo

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK