Legacy Install Failure
niket2503 opened this issue · 3 comments
Describe the bug
I have Windows 11 as an OS along with python 3.9.
Installed blender however haven't added to path if that's the problem please tell.
Updated latest pip. Installed future frings.
When I install it using this " py -3.9-64 -m pip install bpy --no-binary :all: " command, it shows
Error I: subprocess-exited-with-error
Error 2: legacy-install-failure
To Reproduce
Steps to reproduce the behavior:
C:\WINDOWS\system32>py -3.9-64 -m pip install bpy --no-binary :all:
WARNING: Ignoring invalid distribution -ywin32 (c:\users\niket\appdata\local\programs\python\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -atplotlib (c:\users\niket\appdata\local\programs\python\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -ywin32 (c:\users\niket\appdata\local\programs\python\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -atplotlib (c:\users\niket\appdata\local\programs\python\python39\lib\site-packages)
Collecting bpy
Using cached bpy-0.0.0a0.tar.gz (19 kB)
Preparing metadata (setup.py) ... done
Skipping wheel build for bpy, due to binaries being disabled for it.
WARNING: Ignoring invalid distribution -ywin32 (c:\users\niket\appdata\local\programs\python\python39\lib\site-packages)
WARNING: Ignoring invalid distribution -atplotlib (c:\users\niket\appdata\local\programs\python\python39\lib\site-packages)
Installing collected packages: bpy
Running setup.py install for bpy ... error
error: subprocess-exited-with-error
× Running setup.py install for bpy did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\blenderpy
copying blenderpy\post_install.py -> build\lib.win-amd64-3.9\blenderpy
copying blenderpy_init_.py -> build\lib.win-amd64-3.9\blenderpy
running build_ext
Preparing the build environment
Searching for compatible Blender online (this will take a while)
error: [WinError 2] The system cannot find the file specified
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> bpy
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
Desktop (please complete the following information):
- OS: Windows 11
- Browser [e.g. chrome, safari] : Chrome
- Version [e.g. 22]
I am having the same issue
Cloning precompiled libs from svn (this will take a while)
cmake -DWITH_PYTHON_INSTALL=OFF -DWITH_PYTHON_MODULE=ON -DWITH_OPENMP=OFF -DWITH_AUDASPACE=OFF -S/private/var/folders/0l/m4clrtcj4ld5w4945qw9vz0m0000gn/T/pip-install-8co_k6p6/bpy_69ee3903226d4a5594e18af6493fbdb2/build/temp.macosx-10.9-x86_64-3.7/blender -B/private/var/folders/0l/m4clrtcj4ld5w4945qw9vz0m0000gn/T/pip-install-8co_k6p6/bpy_69ee3903226d4a5594e18af6493fbdb2/build/temp.macosx-10.9-x86_64-3.7/build
unable to execute 'cmake': No such file or directory
error: command 'cmake' failed with exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> bpy
MacOS with M1, Python3.7
I'm having same issue, any updates?
Requires: Python >=3.7, <3.8