[英]python cannot find easy_install, how to solve this?
Python 2.6 cannot find the easy_install. Python 2.6找不到easy_install。 I have tried to install it several ways with the egg for version 2.6, but it always throws this error.
我尝试用2.6版的egg安装它的几种方法,但是它总是会抛出此错误。
Running easy_install:
/usr/bin/python "-S" "-c" "import sys,os;p = sys.path[:];import site;sys.path[:] = p;[sys.modules.pop(k) for k, v in sys.modules.items() if hasattr(v, '__path__') and len(v.__path__)==1 and not os.path.exists(os.path.join(v.__path__[0],'__init__.py'))];from setuptools.command.easy_install import main;main()" "-mUNxd" "/Applications/Plone/src/collective.xmpp.chat/eggs/tmpgMHzeC" "-q" "/tmp/tmpKqLBFPget_dist/buildout.dumppickedversions-0.5.tar.gz"
path=/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named setuptools.command.easy_install
An error occurred when trying to install buildout.dumppickedversions 0.5. Look above this message for any errors that were output by easy_install.
While:
Installing.
Loading extensions.
Getting distribution for 'buildout.dumppickedversions==0.5'.
Error: Couldn't install: buildout.dumppickedversions 0.5
I searched extensively online but cannot find a solution. 我在网上进行了广泛搜索,但找不到解决方案。 How do I fix this?
我该如何解决?
I think that on OsX you should have an easy_install-2.6 executable in /usr/bin/ or /usr/local/bin/ 我认为在OsX上,您应该在/ usr / bin /或/ usr / local / bin /中有一个easy_install-2.6可执行文件
Have you tried to directly use that, ie 您是否尝试过直接使用它,即
/usr/bin/easy_install-2.6 install some-package /usr/bin/easy_install-2.6安装一些软件包
you can also try to set this environmental variable: 您也可以尝试设置以下环境变量:
setenv VERSIONER_PYTHON_VERSION 2.6 setenv VERSIONER_PYTHON_VERSION 2.6
or 要么
export VERSIONER_PYTHON_VERSION=2.6 出口VERSIONER_PYTHON_VERSION = 2.6
for bash 为重击
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.