簡體   English   中英

python找不到easy_install,如何解決呢?

[英]python cannot find easy_install, how to solve this?

Python 2.6找不到easy_install。 我嘗試用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

我在網上進行了廣泛搜索,但找不到解決方案。 我該如何解決?

我認為在OsX上,您應該在/ usr / bin /或/ usr / local / bin /中有一個easy_install-2.6可執行文件

您是否嘗試過直接使用它,即

/usr/bin/easy_install-2.6安裝一些軟件包

您也可以嘗試設置以下環境變量:

setenv VERSIONER_PYTHON_VERSION 2.6

要么

出口VERSIONER_PYTHON_VERSION = 2.6

為重擊

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM