用户提问
C:\Users\Administrator>pip3 install python3-netsnmp
Collecting python3-netsnmp
Using cached https://files.pythonhosted.org/packages/da/b3/d6c8236116150ab8194
849786b4bdb99c96b86bc15ff344d9971a9e910a6/python3-netsnmp-1.1a1.tar.gz
Installing collected packages: python3-netsnmp
Running setup.py install for python3-netsnmp ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\administrator\appdata\local\programs\python\python37-32\
python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\User
s\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-8saeao25\\python3-netsnmp\\setup.
py'"'"'; __file__='"'"'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-8s
aeao25\\python3-netsnmp\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)
(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(co
mpile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\ADMINI~1\AppD
ata\Local\Temp\pip-record-vsg212wi\install-record.txt' --single-version-external
ly-managed --compile
cwd: C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-8saeao25\python3-
netsnmp\
Complete output (16 lines):
'net-snmp-config' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\netsnmp
copying netsnmp\client.py -> build\lib.win32-3.7\netsnmp
copying netsnmp\__init__.py -> build\lib.win32-3.7\netsnmp
creating build\lib.win32-3.7\netsnmp\tests
copying netsnmp\tests\test.py -> build\lib.win32-3.7\netsnmp\tests
copying netsnmp\tests\__init__.py -> build\lib.win32-3.7\netsnmp\tests
running build_ext
building 'netsnmp.client_intf' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual
C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\administrator\appdata\l
ocal\programs\python\python37-32\python.exe' -u -c 'import sys, setuptools, toke
nize; sys.argv[0] = '"'"'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-
8saeao25\\python3-netsnmp\\setup.py'"'"'; __file__='"'"'C:\\Users\\ADMINI~1\\App
Data\\Local\\Temp\\pip-install-8saeao25\\python3-netsnmp\\setup.py'"'"';f=getatt
r(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"'
, '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install
--record 'C:\Users\ADMINI~1\AppData\Local\Temp\pip-record-vsg212wi\install-reco
rd.txt' --single-version-externally-managed --compile Check the logs for full co
mmand output.
辅助答案
用户:454592673
2019年08月25日
建议参照这个办法解决网页链接
在Windows上使用pip3安装python3-netsnmp模块时遇到错误,提示需要Microsoft Visual C++ 14.0。安装过程失败,建议用户参考相关解决方案,如安装Microsoft Visual C++ Build Tools。
3520

被折叠的 条评论
为什么被折叠?



