D:\chatgpt-on-wechat-master>pip3 install -r requirements-optional.txt Defaulting to user installation because normal site-packages is not writeable Collecting tiktoken>=0.3.2 (from -r requirements-optional.txt (line 1)) Using cached tiktoken-0.5.2-cp312-cp312-win_amd64.whl.metadata (6.8 kB) Collecting pydub>=0.25.1 (from -r requirements-optional.txt (line 4)) Using cached pydub-0.25.1-py2.py3-none-any.whl (32 kB) Collecting SpeechRecognition (from -r requirements-optional.txt (line 5)) Using cached SpeechRecognition-3.10.1-py2.py3-none-any.whl.metadata (28 kB) Collecting gTTS>=2.3.1 (from -r requirements-optional.txt (line 6)) Using cached gTTS-2.4.0-py3-none-any.whl.metadata (4.1 kB) Collecting pyttsx3>=2.90 (from -r requirements-optional.txt (line 7)) Using cached pyttsx3-2.90-py3-none-any.whl (39 kB) Collecting baidu_aip>=4.16.10 (from -r requirements-optional.txt (line 8)) Using cached baidu_aip-4.16.13-py3-none-any.whl.metadata (310 bytes) Collecting azure-cognitiveservices-speech (from -r requirements-optional.txt (line 9)) Using cached azure_cognitiveservices_speech-1.34.0-py3-none-win_amd64.whl.metadata (1.5 kB) Collecting numpy<=1.24.2 (from -r requirements-optional.txt (line 10)) Using cached numpy-1.24.2.tar.gz (10.9 MB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [33 lines of output] Traceback (most recent call last): File "C:\Users\Administrator\AppData\Roaming\Python\Python312\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module> main() File "C:\Users\Administrator\AppData\Roaming\Python\Python312\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

D:\chatgpt-on-wechat-master>pip3 install -r requirements-optional.txt Defaulting to user installation because normal site-packages is not writeable Collecting tiktoken>=0.3.2 (from -r requirements-optional.txt (line 1)) Using cached tiktoken-0.5.2-cp312-cp312-win_amd64.whl.metadata (6.8 kB) Collecting pydub>=0.25.1 (from -r requirements-optional.txt (line 4)) Using cached pydub-0.25.1-py2.py3-none-any.whl (32 kB) Collecting SpeechRecognition (from -r requirements-optional.txt (line 5)) Using cached SpeechRecognition-3.10.1-py2.py3-none-any.whl.metadata (28 kB) Collecting gTTS>=2.3.1 (from -r requirements-optional.txt (line 6)) Using cached gTTS-2.4.0-py3-none-any.whl.metadata (4.1 kB) Collecting pyttsx3>=2.90 (from -r requirements-optional.txt (line 7)) Using cached pyttsx3-2.90-py3-none-any.whl (39 kB) Collecting baidu_aip>=4.16.10 (from -r requirements-optional.txt (line 8)) Using cached baidu_aip-4.16.13-py3-none-any.whl.metadata (310 bytes) Collecting azure-cognitiveservices-speech (from -r requirements-optional.txt (line 9)) Using cached azure_cognitiveservices_speech-1.34.0-py3-none-win_amd64.whl.metadata (1.5 kB) Collecting numpy<=1.24.2 (from -r requirements-optional.txt (line 10)) Using cached numpy-1.24.2.tar.gz (10.9 MB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [33 lines of output] Traceback (most recent call last): File "C:\Users\Administrator\AppData\Roaming\Python\Python312\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module> main() File "C:\Users\Administrator\AppData\Roaming\Python\Python312\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
用户500598139
2023年12月18日
|
浏览 131

根据您提供的错误信息,看起来是在安装numpy时出现了问题。具体来说,“Getting requirements to build wheel … error” 表明在构建numpy的wheel文件时发生了错误。

要解决这个问题,您可以尝试以下几种方法:

  1. 确保您的Python环境已经正确安装,并且pip版本是最新的。您可以使用以下命令升级pip:

    复制代码
    python -m pip install --upgrade pip
    
  2. 检查您的操作系统是否已经安装了所需的构建工具(如编译器和开发库)。对于Windows用户,您可能需要安装Microsoft Visual C++ Build Tools。对于Linux用户,您可能需要安装gcc和其他相关工具。请参考numpy的官方文档以获取更详细的安装要求。

  3. 确保您的网络连接正常,可以访问所需的依赖库。有时候,网络问题可能会导致无法下载所需的文件。

如果您尝试了上述方法仍然无法解决问题,请提供更多的错误信息或上下文,以便我们能够更好地帮助您解决这个问题。

我要提问
复制内容
分享给好友
AI编程问答网 免责声明:
以上内容除特别注明外均来源于网友提问,AI编程问答网回答,权益归原著者所有;