Python Netifaces模块说,平台必须是“ Win32”之一。 &quot“ win-amd64” &quot“ win-arm32”或“ win-arm64”但是说option plat-name未被识别

发布于 2025-02-03 14:59:45 字数 1426 浏览 2 评论 0原文

因此,我在标题中无法解释它,但是我可以在这里扩展标题。我认为没有其他人有这个问题。我找到了一个使用Netifaces模块的Python脚本,但是我无法让Python安装它。这是安装时的日志:

C:\msys64\mingw64\lib\python3.9\site-packages\setuptools\config\setupcfg.py:459: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
  warnings.warn(msg, warning_class)
running install
C:\msys64\mingw64\lib\python3.9\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
C:\msys64\mingw64\lib\python3.9\site-packages\setuptools\command\easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running bdist_egg
running egg_info
writing netifaces.egg-info\PKG-INFO
writing dependency_links to netifaces.egg-info\dependency_links.txt
writing top-level names to netifaces.egg-info\top_level.txt
reading manifest file 'netifaces.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'netifaces.egg-info\SOURCES.txt'
installing library code to build\bdist.mingw_x86_64\egg
running install_lib
running build_ext
building 'netifaces' extension
error: --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64')

更新:更多的模块正在执行此操作,包括WebView

So I can't explain it enough in the title, but I could extend the title here. I don't think anyone else has this issue. I found a python script that uses the netifaces module, but I can't get python to install it. This is the log when installing:

C:\msys64\mingw64\lib\python3.9\site-packages\setuptools\config\setupcfg.py:459: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
  warnings.warn(msg, warning_class)
running install
C:\msys64\mingw64\lib\python3.9\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
C:\msys64\mingw64\lib\python3.9\site-packages\setuptools\command\easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running bdist_egg
running egg_info
writing netifaces.egg-info\PKG-INFO
writing dependency_links to netifaces.egg-info\dependency_links.txt
writing top-level names to netifaces.egg-info\top_level.txt
reading manifest file 'netifaces.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'netifaces.egg-info\SOURCES.txt'
installing library code to build\bdist.mingw_x86_64\egg
running install_lib
running build_ext
building 'netifaces' extension
error: --plat-name must be one of ('win32', 'win-amd64', 'win-arm32', 'win-arm64')

Update: even more modules are doing this, including webview.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南城旧梦 2025-02-10 14:59:45

您正在使用哪个setuptools
来自MINGW的软件包是您应该使用的软件包,因为它包含用于支持您正在运行的平台的补丁程序。

Which setuptools are you using?
The package from mingw is the one you should be using as it includes patches for supporting the platform you are running.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文