本文主要是介绍Python setup.py install报错File setup.py, line 64, in module 'setuptools=0.6c5',,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
今天安装gitosisi的时候,执行Python setup.py install报错如下:
Traceback (most recent call last):File "setup.py", line 64, in <module>'setuptools>=0.6c5',File "/usr/lib64/python2.7/distutils/core.py", line 152, in setupdist.run_commands()File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commandsself.run_command(cmd)File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_commandcmd_obj.run()File "/usr/lib/python2.7/site-packages/setuptools/command/install.py", line 73, in runself.do_egg_install()File "/usr/lib/python2.7/site-packages/setuptools/command/install.py", line 101, in do_egg_installcmd.run()File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 380, in runself.easy_install(spec, not self.no_deps)File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 604, in easy_installreturn self.install_item(None, spec, tmpdir, deps, True)File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 655, in install_itemself.process_distribution(spec, dist, deps)File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 701, in process_distributiondistreq.project_name, distreq.specs, requirement.extras
TypeError: __init__() takes exactly 2 arguments (4 given)
应该是我的setuptools>=0.6c5版本太低了
解决办法:
官网:https://pypi.org/project/setuptools/18.0.1/#using-setuptools-and-easyinstall
找到了如下:
执行
wget https://bootstrap.pypa.io/ez_setup.py -O - | python
之后在执行Python setup.py install
就成功了!
这篇关于Python setup.py install报错File setup.py, line 64, in module 'setuptools=0.6c5',的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!