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

can’t install with error, how to solve it? #18

Open
canopysgit opened this issue Feb 8, 2025 · 2 comments
Open

can’t install with error, how to solve it? #18

canopysgit opened this issue Feb 8, 2025 · 2 comments

Comments

@canopysgit
Copy link

C:\ComfyUI-aki-v1.4\custom_nodes\ComfyUI_InvSR>pip install -r requirements.txt
Collecting opencv-contrib-python-headless (from -r requirements.txt (line 1))
Using cached opencv_contrib_python_headless-4.11.0.86-cp37-abi3-win_amd64.whl.metadata (20 kB)
Requirement already satisfied: omegaconf in c:\users\m1501\appdata\local\programs\python\python313\lib\site-packages (from -r requirements.txt (line 2)) (2.3.0)
Collecting diffusers>=0.28.0 (from -r requirements.txt (line 3))
Using cached diffusers-0.32.2-py3-none-any.whl.metadata (18 kB)
Collecting numpy<2 (from -r requirements.txt (line 4))
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\m1501\AppData\Local\Programs\Python\Python313\python.exe C:\Users\m1501\AppData\Local\Temp\pip-install-gn7izkvr\numpy_c66eb072a1b24627aac3a8295f939246\vendored-meson\meson\meson.py setup C:\Users\m1501\AppData\Local\Temp\pip-install-gn7izkvr\numpy_c66eb072a1b24627aac3a8295f939246 C:\Users\m1501\AppData\Local\Temp\pip-install-gn7izkvr\numpy_c66eb072a1b24627aac3a8295f939246.mesonpy-vlfe8uac -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\m1501\AppData\Local\Temp\pip-install-gn7izkvr\numpy_c66eb072a1b24627aac3a8295f939246.mesonpy-vlfe8uac\meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: C:\Users\m1501\AppData\Local\Temp\pip-install-gn7izkvr\numpy_c66eb072a1b24627aac3a8295f939246
Build dir: C:\Users\m1501\AppData\Local\Temp\pip-install-gn7izkvr\numpy_c66eb072a1b24627aac3a8295f939246.mesonpy-vlfe8uac
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\m1501\AppData\Local\Temp\pip-install-gn7izkvr\numpy_c66eb072a1b24627aac3a8295f939246\.mesonpy-vlfe8uac\meson-logs\meson-log.txt
  [end of output]

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

[notice] A new release of pip is available: 24.3.1 -> 25.0
[notice] To update, run: python.exe -m pip install --upgrade 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.

@canopysgit
Copy link
Author

系统找不到指定的文件 means system can not find the file

@yuvraj108c
Copy link
Owner

it seems it can't compile numpy from source

try this:

pip install --only-binary :all: "numpy<2"

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

2 participants