在Gitbash中安装python时遇到困难

发布于 2025-01-25 10:54:19 字数 638 浏览 2 评论 0原文

这就是我在git bash中所做的。

 pip install gdal

结果是:

  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

Encountered error while trying to install package.

gdal

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

我真的不知道该怎么办。我什至尝试安装“ Microsoft C ++构建工具”,但我已经安装了,因此我下载了C+软件包。

This is what I did in git bash.

 pip install gdal

and the result is:

  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

Encountered error while trying to install package.

gdal

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

I really don't know what to do. I even tried to install " Microsoft C++ Build Tools " but I already installed so I downloaded C+ packages.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文