Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Modify Python Path for Python3 only

I am developing in both Python 3 and Python 2.6, and have both versions installed. With Python 3, however, the path to lots of the good modules (time, math, ...) is not part of my Python path. I can add the directory to the path, but it's tedious.

Is there a way to permanently modify the path for my Python 3 installation without affecting Python 2?

like image 765
Charles L. Avatar asked Jul 05 '12 17:07

Charles L.


1 Answers

Create virtual environment: http://pypi.python.org/pypi/virtualenv/

Install packages you want in virtual environment.

like image 157
wakeup Avatar answered Oct 19 '22 14:10

wakeup