gpt4 book ai didi

python - msys2/mingw64 : pip: VC 6. 0 这个模块不支持

转载 作者:太空宇宙 更新时间:2023-11-04 09:39:38 25 4
gpt4 key购买 nike

我尝试在 Windows 10 (mingw64) 中安装一个包并收到此错误:

IEUser@MSEDGEWIN10 MINGW64 /c/Users/IEUser/PycharmProjects/myapp_msi-msys/myapp_msi
$ pip install -e git+https://source.example.lan:40443/repos/myapp_common#egg=myapp_common
Obtaining myapp_common from git+https://source.example.lan:40443/repos/myapp_common#egg=myapp_common
Cloning https://source.example.lan:40443/repos/myapp_common to c:/users/ieuser/pycharmprojects/myapp_msi-msys/myapp_msi/src/myapp-common
Username for 'https://source.example.lan:40443':
Password for 'https://tguettler@source.example.lan:40443':
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:/msys64/mingw64/lib/python2.7/site-packages/setuptools/__init__.py", line 191, in <module>
monkey.patch_all()
File "C:/msys64/mingw64/lib/python2.7/site-packages/setuptools/monkey.py", line 101, in patch_all
patch_for_msvc_specialized_compiler()
File "C:/msys64/mingw64/lib/python2.7/site-packages/setuptools/monkey.py", line 164, in patch_for_msvc_specialized_compiler
patch_func(*msvc9('find_vcvarsall'))
File "C:/msys64/mingw64/lib/python2.7/site-packages/setuptools/monkey.py", line 151, in patch_params
mod = import_module(mod_name)
File "C:/msys64/mingw64/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "C:/msys64/mingw64/lib/python2.7/distutils/msvc9compiler.py", line 306, in <module>
raise DistutilsPlatformError("VC %0.1f is not supported by this module" % VERSION)
distutils.errors.DistutilsPlatformError: VC 6.0 is not supported by this module

我该怎么做才能解决这个问题?

我按照这些说明来设置我的开发环境:https://www.gtk.org/download/windows.php

更新

仅作记录,我从 gtk 切换到 qt (PySide2),现在我可以使用 Windows 的默认 Python。现在一切都变得容易多了。

最佳答案

在 MSYS2 中,许多问题都在下游使用进入 pacman 存储库的 MINGW 软件包进行了修补。在这种情况下,您收到此错误的原因是您安装了 setuptools pip,而不是使用 pacman 存储库安装。要解决此问题:

pip uninstall setuptools
pacman -S mingw-w64-x86_64-python-setuptools

或者如果您使用的是现代 Python:

pip3 uninstall setuptools
pacman -S mingw-w64-x86_x64-python3-setuptools

关于python - msys2/mingw64 : pip: VC 6. 0 这个模块不支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52166914/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com