问题标签 [python-netifaces]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
65 浏览

python-3.x - 写入 yaml 时如何删除元类信息?

我正在尝试将此类写入 yum 文件:

我得到这个结果:

如何删除所有元信息,例如 !!python/object: main 来自 yaml 文件?

0 投票
1 回答
285 浏览

python - “Vagrant Up”期间没有名为“netifaces”的模块

当我这样做时vagrant up,我收到以下错误:

我已经'sudo -H pip3 install netifaces',但这似乎并没有解决问题。谢谢!

0 投票
1 回答
96 浏览

python - syft 安装失败

错误:命令出错,退出状态为 1:命令:'C:\Users\saam\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\saam\AppData\Local\Temp\pip-install-n38dpvc6\netifaces_f5d8f5f2fe0e47cf89c8a833bc6962da\setup.py'"'"'; file ='"'"'C:\Users\saam\AppData\Local\Temp\pip-install-n38dpvc6\netifaces_f5d8f5f2fe0e47cf89c8a833bc6962da\setup.py'"'"';f = getattr(tokenize, '"'"'open' "'"', open)( file ) if os.path.exists( file ) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read( )。代替('”, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\saam\AppData\Local\Temp\pip-wheel-nd02t3mw' cwd: C:\Users\saam\AppData\Local \Temp\pip-install-n38dpvc6\netifaces_f5d8f5f2fe0e47cf89c8a833bc6962da
完整输出(11 行): 运行 bdist_wheel 运行 build 运行 build_ext 构建 'netifaces' 扩展 创建构建 创建 build\temp.win-amd64-3.9 创建 build\temp.win-amd64-3.9\Release C:\Program Files (x86) \Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DWIN32=1 -DNETIFACES_VERSION=0.11 .0 -IC:\Users\saam\AppData\Local\Programs\Python\Python39\include -IC:\Users\saam\AppData\Local\Programs\Python\Python39\include -IC:\Program Files (x86)\ Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\ATLMFC\include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um -IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240。0\ucrt /Tcnetifaces.c /Fobuild\temp.win-amd64-3.9\Release\netifaces.obj netifaces.c C:\Users\saam\AppData\Local\Programs\Python\Python39\include\pyconfig.h(200 ):致命错误 C1083:无法打开包含文件:'basetsd.h':没有这样的文件或目录错误:命令'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29 .30133\bin\HostX86\x64\cl.exe' 失败,退出代码为 2

错误:netifaces 构建轮子失败