Created
August 10, 2012 02:53
-
-
Save wynemo/3310583 to your computer and use it in GitHub Desktop.
creating a python3 virtualenv environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#install gcc git build-essential python3 | |
$ sudo aptitude install gcc git build-essential python3 | |
#from http://www.pip-installer.org/en/latest/installing.html | |
$ curl -O https://raw.github.com/pypa/virtualenv/master/virtualenv.py | |
$ mkdir python3_prole | |
$ cd python3_prole/ | |
$ python virtualenv.py -p /usr/bin/python3 env | |
$ python virtualenv.py --relocatable -p /usr/bin/python3 env | |
$ . env/bin/activate | |
(env)$ mkdir env/src | |
(env)$ cd en/src/ | |
(env)$ git clone git://github.com/facebook/tornado.git | |
(env)$ cd tornado | |
(env)$ python setup.py build | |
(env)$ python setup.py install | |
(env)admin@localhost:~/python3_prole/src/tornado$ python | |
Python 3.2.2 (default, Sep 5 2011, 21:17:14) | |
[GCC 4.6.1] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import tornado | |
>>> | |
$ deactivate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment