Python Netifaces模块说,平台必须是“ Win32”之一。 &quot“ win-amd64” &quot“ win-arm32”或“ win-arm64”但是说option plat-name未被识别
因此,我在标题中无法解释它,但是我可以在这里扩展标题。我认为没有其他人有这个问题。我找到了一个使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在使用哪个
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.