我正在尝试安装一个名为syncsheets的库,但收到以下错误。我环顾了类似的情况和类似的问题,得出了一个结论,但仍然很难理解我目前的情况。参考问题:NameError: name 'execfile' is not defined installing fandjango on Python3
我的印象是这个库只支持python2,对于我如何解决这个错误,任何帮助/确认都将不胜感激。谢谢大家!
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ip2brw81/sheetsync/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ip2brw81/sheetsync/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-tyozokps
cwd: /tmp/pip-install-ip2brw81/sheetsync/
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-ip2brw81/sheetsync/setup.py", line 4, in <module>
execfile(os.path.join('sheetsync','version.py'))
NameError: name 'execfile' is not defined
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
我认为您正在尝试安装的库^{} 仅与
python2
兼容。在您的问题中,您正在尝试使用python3
安装相关问题 更多 >
编程相关推荐