使用pip安装colab时遭遇subprocess-exited-with-error错误
问题:pip安装colab时出现依赖版本解析错误
执行pip install colab时触发以下错误:
(.venv) PS F:\PythonProject\Übeersetzung_KI> pip install colab Collecting colab Using cached colab-1.13.5.tar.gz (567 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [3 lines of output] error in colab setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected end or semicolon (after version specifier) pytz>=2011n ~~~~~~^ [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output.
已尝试的无效操作
- 重新安装Jupyter
- 重新安装Pycharm
解决办法
安装Visual Studio中的「Desktop development with C++」工作负载后,问题得到解决。
内容的提问来源于stack exchange,提问作者zGamerZz
相关产品推荐
相关产品推荐

