1.python版本是3.10
2.在安装goto包时报错,提示说应该不是pip问题
代码显示如下
> pip3 install goto
Collecting goto
Using cached goto-0.1.3.tar.gz (7.2 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
Traceback (most recent call last):
File "" , line 2, in <module>
File "" , line 34, in <module>
File "C:\Users\云\AppData\Local\Temp\pip-install-2b5llb8t\goto_ff6c556e6f164b7bbcdf7b25912e337d\setup.py", line 3, in <module>
import goto
File "C:\Users\云\AppData\Local\Temp\pip-install-2b5llb8t\goto_ff6c556e6f164b7bbcdf7b25912e337d\goto\__init__.py", line 10, in <module>
from . import goto
File "C:\Users\云\AppData\Local\Temp\pip-install-2b5llb8t\goto_ff6c556e6f164b7bbcdf7b25912e337d\goto\goto.py", line 86
print '<<< [%02i] %s %s' % (_req_cnt, 'POST' if post else 'GET', url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
4.遇到问题后从网上搜索解决办法
没有找到可行的有用信息
试试 pip install goto -i https://pypi.tuna.tsinghua.edu.cn/simple/
解决了吗,我也遇到一样的问题