我无法在python3.10.1中安装Py音频。使用pip install pipwin
然后是pipwin install pyaudio
。
错误:
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools>pipwin install pyaudio
Package `pyaudio` found in cache
Downloading package . . .
https://download.lfd.uci.edu/pythonlibs/y2rycu7g/PyAudio-0.2.11-cp310-cp310-win_amd64.whl
PyAudio-0.2.11-cp310-cp310-win_amd64.whl
Traceback (most recent call last):
File "C:\Users\ayamk\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\ayamk\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Users\ayamk\AppData\Local\Programs\Python\Python310\Scripts\pipwin.exe\__main__.py", line 7, in <module>
File "C:\Users\ayamk\AppData\Local\Programs\Python\Python310\lib\site-packages\pipwin\command.py", line 103, in main
cache.install(package)
File "C:\Users\ayamk\AppData\Local\Programs\Python\Python310\lib\site-packages\pipwin\pipwin.py", line 300, in install
wheel_file = self.download(requirement)
File "C:\Users\ayamk\AppData\Local\Programs\Python\Python310\lib\site-packages\pipwin\pipwin.py", line 294, in download
return self._download(requirement, dest)
File "C:\Users\ayamk\AppData\Local\Programs\Python\Python310\lib\site-packages\pipwin\pipwin.py", line 290, in _download
obj.start()
File "C:\Users\ayamk\AppData\Local\Programs\Python\Python310\lib\site-packages\pySmartDL\pySmartDL.py", line 267, in start
urlObj = urllib.request.urlopen(req, timeout=self.timeout, context=self.context)
File "C:\Users\ayamk\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "C:\Users\ayamk\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 525, in open
response = meth(req, response)
File "C:\Users\ayamk\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 634, in http_response
response = self.parent.error(
File "C:\Users\ayamk\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 563, in error
return self._call_chain(*args)
File "C:\Users\ayamk\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 496, in _call_chain
result = func(*args)
File "C:\Users\ayamk\AppData\Local\Programs\Python\Python310\lib\urllib\request.py", line 643, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found
发布于 2021-12-27 14:19:39
你得到了urllib.error.HTTPError: HTTP Error 404: Not Found
在.whl
pipwin试图从URL下载它的时候,URL是不可用的。
安装前尝试执行pipwin refresh
或者,您可以直接从.whl
下载https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio并执行以下操作
pip install <path-to-downloaded-whl>
https://stackoverflow.com/questions/70496272
复制相似问题