Python 2.6.7 未在 Windows 中初始化
我正在尝试让 Python 与 Blender 一起运行。我有 64 位 Vista SP2。 2.6.7 Python。当我启动 python 时,命令提示符告诉我这个
'imprt site' failed; use -v for traceback
Traceback <most recent call last>:
File "c:\Python26\Scripts\pypm-script.py", line 5, in <module>
Import Error: No module named pkg_resources
所以,我打开了 pypm-script.py
#!python2.6.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pypm==1.3.4','console_scripts','pypm'
__requires__ = 'pypm==1.3.4'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('pypm==1.3.4', 'console_scripts', 'pypm')()
)
这非常令人沮丧,因为不知道如何阅读代码或如何使用 Python!我希望这个问题很容易解决。
I am trying to get Python to run to use with Blender. I have 64 bit Vista SP2. 2.6.7 Python. When I start python the command prompt tells me this
'imprt site' failed; use -v for traceback
Traceback <most recent call last>:
File "c:\Python26\Scripts\pypm-script.py", line 5, in <module>
Import Error: No module named pkg_resources
So, I opened pypm-script.py
#!python2.6.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pypm==1.3.4','console_scripts','pypm'
__requires__ = 'pypm==1.3.4'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('pypm==1.3.4', 'console_scripts', 'pypm')()
)
This is very frustrating, because have no idea how to read code or how to use Python! I hope this is easily fixable.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
文件
pypm-script.py
(和pkg_resources
)来自ActivePython。您可能必须在 ActivePython 之上安装不同的 Python。我可以想到两种方法来解决这个问题:C:\Python26
并安装ActivePython 2.6(或 2.7),或C:\Python26\Scripts\pypm*
和C:\Python26\Lib\site-packages\pypm*The file
pypm-script.py
(andpkg_resources
) come from ActivePython. You probably must have installed a different Python on top of ActivePython. I can think of two ways to fix this problem:C:\Python26
and install ActivePython 2.6 (or 2.7), orC:\Python26\Scripts\pypm*
andC:\Python26\Lib\site-packages\pypm*