Cannot build wheels when trying to install Manim - python

I am trying to install manim on my PC. Every time I try to use
choco install manim
It says that manim is already installed!
When I try to then use pip install... it comes up with:
ERROR: Could not build wheels for manimpango, mapbox-earcut, pycairo, which is required to install pyproject.toml-based projects
Any help with how to fix this would be greatly appreciated!

Related

Unable to install "PyAudio" on the MacOS (MacBook Air, Intel)?

I have tried every possible way given on the internet but could not fix this issue ERROR: Could not build wheels for pyaudio, which is required to install pyproject.toml-based projects
Even I tried brew install portaudio and pip3 install pyaudio also.
I tried pip install --global-option='build_ext' --global-option='-I/usr/local/include' --global-option='-L/usr/local/lib' pyaudio also but could not fix my issue
image of my terminal

I can't install detectron2 installation in Windows

I try to install detectron2 but this is what i got
ERROR: Could not build wheels for pycocotools, which is required to install pyproject.toml-based projects
I try to fix that using pip install pycocotools or pip install pyproject-toml but it still not work.
Please help! Thank you so much.

unable to download OpenCv on mac with pycharm

Don't know what the issue is. I am unable to download openCv on my mac with pycharm.
I use Python Version 3.8.1.
I have tried to:
pip3 install --upgrade pip setuptools wheel
pip3 install --upgrade pip
I use command:
pip3 install opencv-python
Still does not work. I get the message:
ERROR: Failed building wheel for opencv-python
Failed to build opencv-python
What is the issue? Hope you can help. Has been taking me several of hours now and each time to "build" takes like 1 hour..
Do you have a MacBook with M1 processor?
The problem is that pip does not always install the arm64 version and instead tries to use rosetta to run amd64 versions which breaks. So it “works” it is just finicky and error prone.
Try to install following the steps on this blog: https://blog.roboflow.com/m1-opencv/

Cellpose installation issue

System: MacOS 10.14, python 3.8
I get the following error when I try to pip install Cellpose
ERROR: Could not build wheels for opencv-python-headless, which is required to install pyproject.toml-based projects.
Welcome to StackOverflow, next time, please post full error.
Based on my experience, Try
pip install Wheel
It is a requirement for the package you are trying to install.

Problems pip installing Box2D

I'm learning Reinforcement learning and I'm having the following errors.
Error(1) = I can't set up the 'CarRacing-v0' gym environment without Box2D
Error(2) = I can't pip install the Box2D module.
Does someone know how to interpret these errors and help me fix this?
Edit:
When trying to pip install box2d-py I get this error:
Mac users should try:
brew install swig
pip install box2d-py
pip install box2d
terminates without errors under macOS Mojave (10.14)
Windows users need to do as follows:
Download SWIG with the prebuilt executable and extract somewhere on your PC. Please note: I don't think SWIG 4.0 is compatible with Box2D yet, at time of writing SWIG 3.0.12 must be used.
Add the SWIG directory containing swig.exe to system PATH environment variable.
Install Microsoft Visual C++ 14.0. Get it with "Microsoft Visual C++ Build Tools".
pip install box2d
pip install box2d-py
Based on gym's setup.py, it appears that the Box2D it is trying to import comes from the optional dependency box2d-py, so you need to run pip install box2d-py.
For Ubuntu 18.04, the following solved my problem with gym and lunar lander :
pip3 install box2d-py
For Ubuntu 20.04.3, I had to run the following:
sudo apt-get install swig build-essential python-dev python3-dev
before installing box2d-py.
I know this does not solve the problem but after trying for an entire day I ended up running the game using Google Colab Notebooks. Only problem with that is it's a bit hard to render the screen but there is a post on the topic here.
pip install Box2D
it will work 100%

Categories

Resources