我是 python 新手,我正在安装 python 包,但我收到了这个错误
Error:
Traceback (most recent call last):
File "setup.py", line 3 in <module>
from setuptools import setup, find_packages
ImportError: No module named setuptools
但是当我安装 setuptools 并运行它时,我得到了这个错误
Traceback (most recent call last):
File "C:/Python32/yyy.py", line 7, in <module>
execfile(convert_path('setuptools/command/__init__.py'), d)
NameError: name 'execfile' is not defined
我是 Windows 7 用户。如果有任何人对此有经验,请弄清楚这是什么意思解压缩档案,进入 pyserial-xy 目录并运行?意味着我必须从命令提示符安装它
我想在 python 中使用 twitter api。当我运行它的安装文件时,它显示错误。我用记事本打开它并复制设置代码并将其粘贴到脚本中并用 yyy.py 保存并运行它现在它给了我这样的错误
File "C:\Python26\twittersetup.py",
line 13, in <module>
long_description=open("./README", "r").read(),
IOError: [Errno 2] No such file or directory: './README'
python 3.2中的这个错误器
File "C:/Python32/t.py",
line 9, in <module>
setup(name='twitter',
NameError: name 'setup' is not defined
现在经过多次生存后我得到了这个错误
Traceback (most recent call last):
File "C:\Users\Sheikh\Desktop\twitter-1.9.0 (1).tar\twitter-1.9.0\setup.py",
line 47,
in <module>""",File "C:\Python32\lib\distutils\core.py",
line 136, in setup
raise SystemExit(gen_usage(dist.script_name) + "\nerror: %s" % msg)
SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: no commands supplied