Virtualenv loses context

rhythmicdevil at gmail.com rhythmicdevil at gmail.com
Wed Dec 19 09:42:26 EST 2012


Just installed a brand new virtualenv along with two packages. Ran this and I got nothing: 

(venvtest)[swright at localhost venvtest]$ python -m site 
(venvtest)[swright at localhost venvtest]$ 

I expected to have at least one path in sys.path 



[swright at localhost workspace]$ virtualenv --no-site-packages venvtest
New python executable in venvtest/bin/python
Installing setuptools............done.
Installing pip...............done.


[swright at localhost venvtest]$ source bin/activate
(venvtest)[swright at localhost venvtest]$ python -m site
(venvtest)[swright at localhost venvtest]$ 


(venvtest)[swright at localhost venvtest]$ pip install -r stable-req.txt 
Downloading/unpacking pycrypto==2.6 (from -r stable-req.txt (line 1))
  Downloading pycrypto-2.6.tar.gz (443kB): 443kB downloaded
  Running setup.py egg_info for package pycrypto
Downloading/unpacking pymongo==2.4 (from -r stable-req.txt (line 2))
  Downloading pymongo-2.4.tar.gz (273kB): 273kB downloaded
  Running setup.py egg_info for package pymongo
Downloading/unpacking yolk==0.4.3 (from -r stable-req.txt (line 3))
  Downloading yolk-0.4.3.tar.gz (86kB): 86kB downloaded
  Running setup.py egg_info for package yolk
    warning: no files found matching '*.txt' under directory 'tests'
    warning: no files found matching '*.conf' under directory 'docs'
    warning: no files found matching '*.css_t' under directory 'docs'
    warning: no files found matching 'indexsidebar.html' under directory 'docs'
    warning: no files found matching 'tests/test_cli.py'
Requirement already satisfied (use --upgrade to upgrade): setuptools in ./lib/python
2.6/site-packages/setuptools-0.6c11-py2.6.egg (from yolk==0.4.3->-r stable-req.txt (
line 3))
... lots more text...




(venvtest)[swright at localhost venvtest]$ pwd
/home/swright/workspace/venvtest
(venvtest)[swright at localhost venvtest]$ ll lib/python2.6/site-packages/
total 372
drwxrwxr-x  2 swright swright   4096 Dec 19 09:34 bson
drwxrwxr-x 10 swright swright   4096 Dec 19 09:34 Crypto
-rw-rw-r--  1 swright swright    237 Dec 19 09:32 easy-install.pth
drwxrwxr-x  2 swright swright   4096 Dec 19 09:34 gridfs
drwxrwxr-x  4 swright swright   4096 Dec 19 09:32 pip-1.2.1-py2.6.egg
drwxrwxr-x  2 swright swright   4096 Dec 19 09:34 pycrypto-2.6-py2.6.egg-info
drwxrwxr-x  2 swright swright   4096 Dec 19 09:34 pymongo
drwxrwxr-x  2 swright swright   4096 Dec 19 09:34 pymongo-2.4-py2.6.egg-info
-rw-r--r--  1 swright swright 333447 Dec  5 09:13 setuptools-0.6c11-py2.6.egg
-rw-rw-r--  1 swright swright     30 Dec 19 09:32 setuptools.pth
drwxrwxr-x  3 swright swright   4096 Dec 19 09:34 yolk
drwxrwxr-x  2 swright swright   4096 Dec 19 09:34 yolk-0.4.3-py2.6.egg-info
(venvtest)[swright at localhost venvtest]$ 



More information about the Python-list mailing list