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

Meson error while installing #172

Open
Vykq opened this issue Mar 4, 2025 · 0 comments
Open

Meson error while installing #172

Vykq opened this issue Mar 4, 2025 · 0 comments

Comments

@Vykq
Copy link

Vykq commented Mar 4, 2025

C:\ai-image-generator\Wan2.1>pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: torch>=2.4.0 in c:\users\vykin\appdata\local\packages\pythonsoftwarefoundation.python.3.13_qbz5n2kfra8p0\localcache\local-packages\python313\site-packages (from -r requirements.txt (line 1)) (2.6.0)
Collecting torchvision>=0.19.0 (from -r requirements.txt (line 2))
Using cached torchvision-0.21.0-cp313-cp313-win_amd64.whl.metadata (6.3 kB)
Collecting opencv-python>=4.9.0.80 (from -r requirements.txt (line 3))
Using cached opencv_python-4.11.0.86-cp37-abi3-win_amd64.whl.metadata (20 kB)
Collecting diffusers>=0.31.0 (from -r requirements.txt (line 4))
Using cached diffusers-0.32.2-py3-none-any.whl.metadata (18 kB)
Collecting transformers>=4.49.0 (from -r requirements.txt (line 5))
Using cached transformers-4.49.0-py3-none-any.whl.metadata (44 kB)
Collecting tokenizers>=0.20.3 (from -r requirements.txt (line 6))
Using cached tokenizers-0.21.0-cp39-abi3-win_amd64.whl.metadata (6.9 kB)
Collecting accelerate>=1.1.1 (from -r requirements.txt (line 7))
Using cached accelerate-1.4.0-py3-none-any.whl.metadata (19 kB)
Collecting tqdm (from -r requirements.txt (line 8))
Using cached tqdm-4.67.1-py3-none-any.whl.metadata (57 kB)
Collecting imageio (from -r requirements.txt (line 9))
Using cached imageio-2.37.0-py3-none-any.whl.metadata (5.2 kB)
Collecting easydict (from -r requirements.txt (line 10))
Using cached easydict-1.13-py3-none-any.whl.metadata (4.2 kB)
Collecting ftfy (from -r requirements.txt (line 11))
Using cached ftfy-6.3.1-py3-none-any.whl.metadata (7.3 kB)
Collecting dashscope (from -r requirements.txt (line 12))
Using cached dashscope-1.22.1-py3-none-any.whl.metadata (6.7 kB)
Collecting imageio-ffmpeg (from -r requirements.txt (line 13))
Using cached imageio_ffmpeg-0.6.0-py3-none-win_amd64.whl.metadata (1.5 kB)
Requirement already satisfied: flash_attn in c:\users\vykin\appdata\local\packages\pythonsoftwarefoundation.python.3.13_qbz5n2kfra8p0\localcache\local-packages\python313\site-packages (from -r requirements.txt (line 14)) (2.7.4.post1)
Collecting gradio>=5.0.0 (from -r requirements.txt (line 15))
Using cached gradio-5.20.0-py3-none-any.whl.metadata (16 kB)
Collecting numpy<2,>=1.23.5 (from -r requirements.txt (line 16))
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\vykin\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0\python.exe C:\Users\vykin\AppData\Local\Temp\pip-install-sli7r7q2\numpy_d2c563a7781c4388ade929ecaee4f723\vendored-meson\meson\meson.py setup C:\Users\vykin\AppData\Local\Temp\pip-install-sli7r7q2\numpy_d2c563a7781c4388ade929ecaee4f723 C:\Users\vykin\AppData\Local\Temp\pip-install-sli7r7q2\numpy_d2c563a7781c4388ade929ecaee4f723.mesonpy-54s_no6z -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\vykin\AppData\Local\Temp\pip-install-sli7r7q2\numpy_d2c563a7781c4388ade929ecaee4f723.mesonpy-54s_no6z\meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: C:\Users\vykin\AppData\Local\Temp\pip-install-sli7r7q2\numpy_d2c563a7781c4388ade929ecaee4f723
Build dir: C:\Users\vykin\AppData\Local\Temp\pip-install-sli7r7q2\numpy_d2c563a7781c4388ade929ecaee4f723.mesonpy-54s_no6z
Build type: native build
Project name: NumPy
Project version: 1.26.4
WARNING: Failed to activate VS environment: Could not parse vswhere.exe output

  ..\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] The system cannot find the file specified"
  Running `cl /?` gave "[WinError 2] The system cannot find the file specified"
  Running `cc --version` gave "[WinError 2] The system cannot find the file specified"
  Running `gcc --version` gave "[WinError 2] The system cannot find the file specified"
  Running `clang --version` gave "[WinError 2] The system cannot find the file specified"
  Running `clang-cl /?` gave "[WinError 2] The system cannot find the file specified"
  Running `pgcc --version` gave "[WinError 2] The system cannot find the file specified"

  A full log can be found at C:\Users\vykin\AppData\Local\Temp\pip-install-sli7r7q2\numpy_d2c563a7781c4388ade929ecaee4f723\.mesonpy-54s_no6z\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.

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