Install pip3 using virtualenv

Now I am trying to remove a few things when I have a mavericks. I used Homebrew to install python 2.7 and 3.3. I also have my own pips. Now I want to have a reasonable virtualenv setup.

I can see from virtualenv with python2 and python3 through Homebrew to indicate which version of python the newly created virtualenv will use. What is the best way (e.g. the easiest way to use / remember) to make sure virtualenv using Python 3.3 uses pip3?

ETA: I haven’t had to use 3.3 before, so this is my first experience trying to support different versions. Sorry if this has an obvious answer.

+4
source share
2 answers

Take a look at this article: Python Development Environment on Mac OS X Mavericks 10.9 . It pretty clearly describes how to configure both versions of Python on the same machine using Homebrew and contains some useful pointers.

In the article, the author adds -py3 to the Python3 virtual virtual file, as @moliware already pointed out.

+1
source

The loan goes to scythargon for this (the answer in this thread remained in the comments to Kristof ), and since he did exactly what I needed, I decided that he deserved his own answer.

virtualenv virtualenvwrapper -p, Python. {virtualenv_name} :

Python 3.3:

$ mkvirtualenv {virtualenv_name} -ppython3.3

Python 3.4:

$ mkvirtualenv {virtualenv_name} -ppython3.4

Python 2.7:

$ mkvirtualenv {virtualenv_name} -ppython2.7
+6

All Articles