Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装环境报错 #40

Open
molun opened this issue Feb 27, 2025 · 0 comments
Open

安装环境报错 #40

molun opened this issue Feb 27, 2025 · 0 comments

Comments

@molun
Copy link

molun commented Feb 27, 2025

Collecting numpy==1.26.4 (from -r requirements.txt (line 7))
Using cached numpy-1.26.4.tar.gz (15.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
+ C:\Users\molun\AppData\Local\Programs\Python\Python313\python.exe C:\Users\molun\AppData\Local\Temp\pip-install-zw8kn1dd\numpy_be4f2013858649c9b0b2dfa1a3d50209\vendored-meson\meson\meson.py setup C:\Users\molun\AppData\Local\Temp\pip-install-zw8kn1dd\numpy_be4f2013858649c9b0b2dfa1a3d50209 C:\Users\molun\AppData\Local\Temp\pip-install-zw8kn1dd\numpy_be4f2013858649c9b0b2dfa1a3d50209.mesonpy-26tb8vj2 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\molun\AppData\Local\Temp\pip-install-zw8kn1dd\numpy_be4f2013858649c9b0b2dfa1a3d50209.mesonpy-26tb8vj2\meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: C:\Users\molun\AppData\Local\Temp\pip-install-zw8kn1dd\numpy_be4f2013858649c9b0b2dfa1a3d50209
Build dir: C:\Users\molun\AppData\Local\Temp\pip-install-zw8kn1dd\numpy_be4f2013858649c9b0b2dfa1a3d50209.mesonpy-26tb8vj2
Build type: native build
Project name: NumPy
Project version: 1.26.4
WARNING: Failed to activate VS environment: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe

  ..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]                                                                                                                     
  The following exception(s) were encountered:                                                                      
  Running `icl ""` gave "[WinError 2] 系统找不到指定的文件。"                                                       
  Running `cl /?` gave "[WinError 2] 系统找不到指定的文件。"                                                        
  Running `cc --version` gave "[WinError 2] 系统找不到指定的文件。"                                                 
  Running `gcc --version` gave "[WinError 2] 系统找不到指定的文件。"                                                
  Running `clang --version` gave "[WinError 2] 系统找不到指定的文件。"                                              
  Running `clang-cl /?` gave "[WinError 2] 系统找不到指定的文件。"                                                  
  Running `pgcc --version` gave "[WinError 2] 系统找不到指定的文件。"                                               
                                                                                                                    
  A full log can be found at C:\Users\molun\AppData\Local\Temp\pip-install-zw8kn1dd\numpy_be4f2013858649c9b0b2dfa1a3d50209\.mesonpy-26tb8vj2\meson-logs\meson-log.txt                                                                       
  [end of output]                                                                                                   

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
PS D:\MOLUN\Documents\GitHub\bailing>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant