开发者

Creating a new virtualenv results in an error

开发者 https://www.devze.com 2022-12-14 09:16 出处:网络
I\'m trying to get virtualenv to work on my machine. I\'m using python2.6, and after installing pip, and using pip to install virtualenv, running \"virtualenv --no-site-packages cyclesg\" results in t

I'm trying to get virtualenv to work on my machine. I'm using python2.6, and after installing pip, and using pip to install virtualenv, running "virtualenv --no-site-packages cyclesg" results in the following:

New python executable in cyclesg/bin/python
Installing setuptools....
  Complete output from command /home/nubela/Workspace/cyclesg...ython -c "#!python
\"\"\"Bootstrap setuptoo...




" /usr/lib/python2.6/site-packag...6.egg:
  error: invalid Python installation: unable to open /home/nubela/Workspace/cyclesg_dep/cyclesg/include/multiarch-i386-linux/python2.6/pyconfig.h (No such file or directory)
----------------------------------------
...Installing setuptools...done.
New python executable in cyclesg/bin/python
Instal开发者_如何转开发ling setuptools....
  Complete output from command /home/nubela/Workspace/cyclesg...ython -c "#!python
\"\"\"Bootstrap setuptoo...




" /usr/lib/python2.6/site-packag...6.egg:
  error: invalid Python installation: unable to open /home/nubela/Workspace/cyclesg_dep/cyclesg/include/multiarch-i386-linux/python2.6/pyconfig.h (No such file or directory)
----------------------------------------
...Installing setuptools...done.

Any idea how I can remedy this? Thanks!


Are you on mandriva?

In order to support multilib (mixing x86/x86_64) Mandriva messes up your python installation. They patched python, which breaks virtualenv; instead of fixing python, they then proceeded to patch virtualenv. This is useless if you are using your own virtualenv installed from pip.

Here is the bug: https://qa.mandriva.com/show_bug.cgi?id=42808


Are you on a linux based system? It looks like virtualenv is trying to build a new python exectable but can't find the files to do that. Try installing the python-dev package.

0

精彩评论

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