我想在我的Python脚本中使用UPnP,所以我尝试通过pip install miniupnpc
安装miniupnpc。但是安装开始后会出现一 pip 错误:
ERROR: Command errored out with exit status 1:
cwd: C:\Users\sammy\AppData\Local\Temp\pip-install-jrjs0fss\miniupnpc\
Complete output (4 lines):
running install
running build
running build_ext
error: [WinError 2] The system cannot find the file specified
----------------------------------------
我检查了 GitHub,但我不知道在哪里可以找到编译 python 模块所需的工具或如何使用它们。
最佳答案
我相信当时这个库有 pip bug,我最终没有解决这个问题,我建议寻找其他工具。
还值得一提的是,当时我并不是一个很好的程序员,现在我实际上了解了库和包的本质。
关于python-3.x - 如何在 Windows 上安装 miniupnpc 作为 python 模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63525105/