繁体   English   中英

尝试使用 pip 安装 sheetsync 时出错

[英]Error trying to Install sheetsync using pip

我目前正在尝试安装一个名为 syncsheets 的库,但收到以下错误。 我环顾了具有类似问题的类似情况并得出了一个结论,但仍然很难理解我目前的情况。 参考问题: NameError: name 'execfile' is not defined 在 Python3 上安装 fandjango

我的印象是这个库只支持 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.

我认为您正在尝试安装的库sheetsync仅与python2兼容。 在您的问题中,您尝试使用python3安装。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM