“pip install”中的最大递归和& “setup.py install”

时间:2011-10-15 17:41:44

标签: python python-install

我正在尝试在Macbook(OS X 10.6.8)上安装软件包(splinter),但我不断收到最大的递归错误。无论我使用“setup.py install”还是“pip install”,以及我是否尝试进行全局安装或使用virtualenv,都会出现这种情况。它们都发生在Python 2.7.1和2.7.2下。它们发生在我做船的时候,它们发生在我用山羊做的时候。

请注意,没有其他人似乎对splinter包有这个问题。

我追溯的循环:

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/egg_info.py", line 177, in run
    self.find_sources()
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/egg_info.py", line 252, in find_sources
    mm.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/egg_info.py", line 306, in run
    self.add_defaults()
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/egg_info.py", line 330, in add_defaults
    sdist.add_defaults(self)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/sdist.py", line 264, in add_defaults
    for pkg, src_dir, build_dir, filenames in build_py.data_files:
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/build_py.py", line 39, in __getattr__
    self.data_files = files = self._get_data_files(); return files
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/build_py.py", line 44, in _get_data_files
    self.analyze_manifest()
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/setuptools/command/build_py.py", line 92, in analyze_manifest
    self.run_command('egg_info')
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)

我的Python路径:

/Users/gimli/Work/LocalSystemGimli/troubleshooting/splinter_install
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pip-1.0-py2.7.egg
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/virtualenv-1.6.4-py2.7.egg
/Users/gimli/Work/LocalSystemGimli/troubleshooting/splinter_install
/opt/local/www
/opt/local/www/swage_block/libraries/django_tastypie
/Library/Frameworks/Python.framework/Versions/2.7/lib/python27.zip
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
/Library/Python/2.6/site-packages/MySQL_python-1.2.3-py2.6-macosx-10.6-universal.egg
/Library/Python/2.6/site-packages/lxml-2.3-py2.6-macosx-10.6-universal.egg
/Library/Python/2.6/site-packages/python_dateutil-1.5-py2.6.egg
/Library/Python/2.6/site-packages/python_digest-1.7-py2.6.egg
/Library/Python/2.6/site-packages/simplejson-2.1.6-py2.6-macosx-10.6-universal.egg
/Library/Python/2.6/site-packages
/Library/Python/2.6/site-packages/mimeparse-0.1.3-py2.6.egg-info
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python

pip.log有很多很多警告“警告:manifest_maker:标准文件'-c'找不到”。

setuptools.__version__为0.6c9,setuptools.distutils.__version__为2.7.2。

奇怪的是,setuptools模块的__file__位于2.6安装目录下,但setuptools.disutils的位于2.7安装目录下。

我怀疑问题是我安装2.7或某些相关模块时出现了一些微妙的错误(安装了2.6的计算机)但是我不能为我的生活找到问题。

1 个答案:

答案 0 :(得分:2)

您需要为Python 2.7安装安装单独版本的Distributesetuptoolseasy_install命令的两个源)。每个Python实例都必须有自己的。 Apple提供的系统Pythons在10.6中在他们的Apple提供的软件包中easy_install/usr/bin中有自己的setuptools。您安装的Python 2.7不会自动附带一个。请注意回溯如何从Python 2.7开始,然后从2.6中选择setuptools。不要在PYTHONPATH上混用Python版本!