Search code examples
pythonlinuxcentos5python-3.2

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?


Solution

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

    Install packages you want in virtual environment.