开发者

Error installing eggs with packages for different python version with virtualenv

开发者 https://www.devze.com 2023-04-01 00:58 出处:网络
I\'m not able to install packages with a virtualenv set to a different python version. Here\'s my开发者_运维百科 $:

I'm not able to install packages with a virtualenv set to a different python version. Here's my开发者_运维百科 $:

$ 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

Among others, here the error:

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

No problems, actually, using the default version of python installed on my system (2.7)ubuntu


$ sudo apt-get install python2.6-dev

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号