Closed RustLover2910 closed 1 year ago
Using the Ubuntu environment for Windows, the problem seems to be with numpy. With python 3.10, you have to pip install numpy==1.24.2
and install the most recent version of opencv-python (so just pip install opencv-python
). Then I just went down the list of packages in requirements.txt and manually installed each of them with pip so that pip install -r
wouldn't give up upon encountering the numpy stuff. This worked for me and didn't take that long, and (I think) can be easily fixed by changing the requirements in requirements.txt.
Thanks Mate It worked! Although it took lots of work around.
Here
is the output from the
pip3 install -r requirements.txt`(env)
armstrong@NathansPC:~/DesmosBezierRenderer$ pip install -r requirements.txt Collecting click==7.1.2 Using cached click-7.1.2-py2.py3-none-any.whl (82 kB) Collecting cycler==0.10.0 Using cached cycler-0.10.0-py2.py3-none-any.whl (6.5 kB) Collecting Flask==1.1.2 Using cached Flask-1.1.2-py2.py3-none-any.whl (94 kB) Requirement already satisfied: Flask-Cors==3.0.10 in ./env/lib/python3.10/site-packages (from -r requirements.txt (line 4)) (3.0.10) Collecting itsdangerous==1.1.0 Using cached itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB) Collecting Jinja2==2.11.3 Using cached Jinja2-2.11.3-py2.py3-none-any.whl (125 kB) Collecting kiwisolver==1.3.1 Using cached kiwisolver-1.3.1.tar.gz (53 kB) Preparing metadata (setup.py) ... done Collecting MarkupSafe==1.1.1 Using cached MarkupSafe-1.1.1.tar.gz (19 kB) Preparing metadata (setup.py) ... done Collecting matplotlib==3.4.1 Using cached matplotlib-3.4.1.tar.gz (37.3 MB) Preparing metadata (setup.py) ... done Collecting numpy==1.23.0 Using cached numpy-1.23.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.0 MB) Collecting opencv-python==4.5.1.48 Using cached opencv-python-4.5.1.48.tar.gz (88.3 MB) Installing build dependencies ... error error: subprocess-exited-with-error× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [323 lines of output] Ignoring numpy: markers 'python_version == "3.6" and platform_machine != "aarch64"' don't match your environment Ignoring numpy: markers 'python_version >= "3.6" and sys_platform == "linux" and platform_machine == "aarch64"' don't match your environment Ignoring numpy: markers 'python_version == "3.7" and platform_machine != "aarch64"' don't match your environment Ignoring numpy: markers 'python_version == "3.8" and platform_machine != "aarch64"' don't match your environment Collecting setuptools Using cached setuptools-67.6.0-py3-none-any.whl (1.1 MB) Collecting wheel Using cached wheel-0.38.4-py3-none-any.whl (36 kB) Collecting scikit-build Using cached scikit_build-0.16.7-py3-none-any.whl (79 kB) Collecting cmake Using cached cmake-3.25.2-py2.py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (23.7 MB) Collecting pip Using cached pip-23.0.1-py3-none-any.whl (2.1 MB) Collecting numpy==1.19.3 Using cached numpy-1.19.3.zip (7.3 MB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error
note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip. `
I will provide any other information needed. I am using Linux Mint.