新的安装, 建立环境的时候也没有添加额外的参数啊, 但为啥它就是使用了系统的全局site-package呢??
不解啊啊, 一遇到问题一波问题就来, 平时怎么用都没问题的啊啊, 为啥啊??
跟python版本有关么, 服务器运行的是python2.6 centos64
第 1 条附言 · 2014-06-20 17:38:55 +08:00
- 建立
[xxx@localhost xxx]$ virtualenv-2.6 --no-site-packages menv2
New python executable in menv2/bin/python
Installing setuptools, pip...done.
- 激活
[xxx@localhost xxx]$ . menv2/bin/activate
- 查看
(menv2)[xxx@localhost xxx]$ python
Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36)
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/python2.6/site-packages/Jinja2-2.7.1-py2.6.egg', '/usr/lib/python2.6/site-packages/MySQL_python-1.2.4-py2.6-linux-x86_64.egg', '/usr/lib/python2.6/site-packages/pyOpenSSL-0.12-py2.6-linux-x86_64.egg', '/usr/lib/python2.6/site-packages/redis-2.8.0-py2.6.egg', '/usr/lib/python2.6/site-packages/Flask-0.10.1-py2.6.egg', '/usr/lib/python2.6/site-packages/pycurl-7.19.0.2-py2.6-linux-x86_64.egg', '/usr/lib/python2.6/site-packages/gunicorn-18.0-py2.6.egg', '/usr/lib/python2.6/site-packages/pika-0.9.13-py2.6.egg', '/usr/lib/python2.6/site-packages/tornado-1.2-py2.6.egg', '/usr/lib/python2.6/site-packages/ipython-0.9.1-py2.6.egg', '/usr/lib/python2.6/site-packages/Beaker-1.6.4-py2.6.egg', '/usr/lib/python2.6/site-packages/BeautifulSoup-3.2.1-py2.6.egg', '/usr/lib/python2.6/site-packages/Markdown-2.4.1-py2.6.egg', '/usr/lib/python2.6/site-packages/MarkupSafe-0.23-py2.6-linux-x86_64.egg', '/usr/lib/python2.6/site-packages/PyMySQL-0.5-py2.6.egg', '/usr/lib/python2.6/site-packages/chardet-2.2.1-py2.6.egg', '/usr/lib/python2.6/site-packages/requests-2.3.0-py2.6.egg', '/usr/lib/python2.6/site-packages/supervisor-3.0-py2.6.egg', '/usr/lib/python2.6/site-packages/meld3-1.0.0-py2.6.egg', '/usr/lib/python2.6/site-packages/psycopg2-2.5.3-py2.6-linux-x86_64.egg', '/usr/lib/python2.6/site-packages/torndb-0.2-py2.6.egg', '/usr/lib/python2.6/site-packages/wtforms_tornado-0.0.1-py2.6.egg', '/usr/lib/python2.6/site-packages/WTForms-2.0-py2.6.egg', '/usr/lib/python2.6/site-packages/ordereddict-1.1-py2.6.egg', '/data/xxx', '/data/Python/xxx',]
疯了