Skip to content

Instantly share code, notes, and snippets.

@papamoose
Forked from wynemo/python3_virtualenv.txt
Created July 12, 2018 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save papamoose/cd46ad26395857269a023b0a84da319f to your computer and use it in GitHub Desktop.
Save papamoose/cd46ad26395857269a023b0a84da319f to your computer and use it in GitHub Desktop.
creating a python3 virtualenv environment
#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