by espeed · 14y ago · 0 comments
Create a virtual environment for the Python version you want to use, and install the package with pip (pip will install all the dependencies in your project's local environment)...
$ mkdir myproj
$ cd myproj
$ virtualenv --python=python2.7 env
$ source env/bin/activate
(env)$ pip install somepackage $ mkvirtualenv env1
(env1)$ pip install somepackage
Creating self containing python projects has never been so easy!Like I say, I've probably just been unlucky. But at this point it's given me a pretty serious aversion to Python. Will probably have to get over that someday, I suppose.