微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

为什么引号会在错误消息上重复?

如何解决为什么引号会在错误消息上重复?

当我使用 scipy 安装 pipenv 时会发生这种错误。我找到了解决方法,只是很好奇,但为什么会出现类似 '"'"' 这样的错误消息?

这里是错误代码部分;

if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');

[pipenv.exceptions.InstallError]: ERROR: Command errored out with exit status 1: /root/.local/share/virtualenvs/raptgen-O5zg_txm/bin/python -u -c 'import io,os,sys,setuptools,tokenize; sys.argv[0] = '"'"'/tmp/pip-install-ztutyeq7/scipy_2aaa07f2c2834876a37b078871ee11f1/setup.py'"'"'; __file__='"'"'/tmp/pip-install-ztutyeq7/scipy_2aaa07f2c2834876a37b078871ee11f1/setup.py'"'"';f = getattr(tokenize,'"'"'open'"'"',open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"','"'"'\n'"'"');f.close();exec(compile(code,__file__,'"'"'exec'"'"'))' install --record /tmp/pip-record-k2z7g6g0/install-record.txt --single-version-externally-managed --compile --install-headers /root/.local/share/virtualenvs/raptgen-O5zg_txm/include/site/python3.8/scipy Check the logs for full command output.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。