我想在Windows上使用ActivePython 3.1.2安装distribute。如何安装发布Python 3
运行python distribute_setup.py
上的奶酪店描述给我:
No setuptools distribution found
running install
Traceback (most recent call last):
File "setup.py", line 177, in
scripts = scripts,
File "C:\Dev\Python_x86\3.1\lib\distutils\core.py", line 149, in setup
dist.run_commands()
File "C:\Dev\Python_x86\3.1\lib\distutils\dist.py", line 919, in run_commands
self.run_command(cmd)
File "C:\Dev\Python_x86\3.1\lib\distutils\dist.py", line 938, in run_command
cmd_obj.run()
File "build\src\setuptools\command\install.py", line 73, in run
self.do_egg_install()
File "build\src\setuptools\command\install.py", line 82, in do_egg_install
easy_install = self.distribution.get_command_class('easy_install')
File "build\src\setuptools\dist.py", line 361, in get_command_class
self.cmdclass[command] = cmdclass = ep.load()
File "build\src\pkg_resources.py", line 1953, in load
entry = import(self.module_name, globals(),globals(), ['name'])
File "build\src\setuptools\command\easy_install.py", line 16, in
from setuptools.sandbox import run_setup
File "build\src\setuptools\sandbox.py", line 164, in
fromlist=['name']).file)
AttributeError: 'module' object has no attribute 'file'
Something went wrong during the installation.
See the error message above.
是否有可能我就是缺少一个未知的依赖?
下载源代码包并执行python setup.py install
会产生完全相同的输出。
编辑:为运行安装程序添加了完整的堆栈跟踪。
它看起来像你可能会得到相同的错误,但如果你这样做你可以把整个堆栈跟踪? – 2010-05-23 22:04:29
是的,我已经试过了,我得到了同样的错误。如果有帮助,我会将完整的堆栈跟踪添加到问题中。 – csnullptr 2010-05-23 22:15:18
感谢堆栈跟踪...我在看它,并决定尝试在我已经安装的虚拟机上安装Python3。这是来自python.org的Python3的干净副本。安装进行得很顺利,现在我正在测试为什么Active Python和已经测试的Python之间存在差异。 – 2010-05-23 23:39:45