2011-09-01 179 views
1

我无法安装virtualenv软件包设置为不同的python版本。这里是我的$:使用virtualenv安装不同python版本的软件包错误

$ sudo apt-get install python-setuptools python-dev build-essential 
$ sudo easy_install -U pip 
$ sudo virtualenv --no-site-packages --distribute --python=/usr/bin/python2.6 pootle 
$ cd pootle 
$ sudo pip install mysql-python 

其中,在这里的错误:

pymemcompat.h:10:20: fatal error: Python.h: File o directory non esistente 

没有问题,实际上,使用安装在我的系统上蟒的默认版本(2.7)的Ubuntu

+0

看来,我只有python-dev默认的Python版本(2.7),而我错过了2.6包。如何安装它们? –

回答

2

$ sudo apt-get install python2.6-dev

+0

圣洁的废话......我明确感觉自己像荷马辛普森吧! tnx为(虚拟)问题的答案! –