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/
Related
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 don't understand what this error 'Failed building wheel for Pillow' means?
I just wanted to install easyocr, but it gives me an error, I tried to find a solution to the problem on the Internet but could not find it. Help me solve this problem, I will be very grateful
pip install easyocr
Try doing pip install -U pip
This will upgrade the version of pip in your system. Sometimes, the latest version of a python package that you are trying to install is not compatible with the pip version installed in the system.
The above command will update your pip and once that is done, you can try running the command pip install easyocr once again.
Let me know if this helped!!
If this did not help, please let me know whether you are on a windows machine or a linux machine.
If you are on an Ubuntu machine then you probably have to redo the steps that I mentioned using pip3 instead of pip.
I am trying to install opencv in the terminal but every time I try installing it an error comes up saying ERROR: Failed building wheel for numpy Failed to build numpy ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly
I tried installing with pip install opencv-python and pip install opencv-contrib-python
Opencv apparently doesn't work well with M1 chip macs, so I advise using conda instead of venv or pip, things that showed errors with pip doesn't show in conda. For me atleast :)
I've been trying to install kivy on windows10 machine and I did not get an expected output, instead, I got a series of weird error messages. First I ran the following commands:
python -m pip install --upgrade pip wheel setuptools
python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew
python -m pip install kivy.deps.gstreamer
python -m pip install kivy.deps.angle
python -m pip install pygame
And as far as I know, everything went right.
After that, I ran this command: python -m pip install https://github.com/kivy/kivy/archive/master.zip
Command output helped me break down the process of executing it.
First I got an error message while "Getting requirements to build wheel".
error message:
I got this error while "Preparing wheel metadata" and "Building wheel for Kivy (PEP 517)" as well. I think that it is worth mentioning that every time I said that error occurred, it occurred twice, one after another.
After that, I got a huge error:
You can download the test file with an error message on this link: https://filesend.standardnotes.org/send/BPQTjNM3aiUyRXOtfA3A#ZGI2ZDUzMWU2MmYzNTlhNTVlODEw
Note: All the commands that I executed were executed in cmd ran by the administrator.
If anyone can explain to me what is going on I would highly appreciate it!
Going by related issues here - ERROR: Could not build wheels for pendulum which use PEP 517 and cannot be installed directly and pip failing to build wheels for scipy
The answers seem to suggest that downgrading pip version will likely solve the problem. But before that please try
pip install --upgrade pip setuptools wheel
Instead of
python -m pip install --upgrade pip wheel setuptools
and see if it solves. If not, downgrade your pip by doing
python -m pip install --force-reinstall pip==18.1
If none of these work then your only viable solution is to use Kivy within Anaconda. You can see more on installation from here.
If I am not mistaken, this error means that you are trying to run 64-bit application on a 32-bit system. Install python version which corresponds to your OS, and then try again.
Also, make sure you have the newest version of C++ Redistributable installed.
Every forum I have looked at says that:
pip install pillow
remedies issues with installing pyautogui, however, I have installed pillow and I am still receiving:
python setup.py egg_info failed with error code 1
Any suggestions? I also tried installing PIL but that failed as well with the same error.
Have you tried to upgrade your setuptools? What version of it you use? Try this:
pip install --upgrade setuptools
If you have not installed setuptools, use:
pip install setuptools
To anybody else who has this problem with this - I have found a solution here
Use the workaround he provides for pyobjc-core
pip3 install https://github.com/GreatFruitOmsk/pyobjc-core/releases/download/v3.0.5.dev0/pyobjc-core-3.0.5.tar.gz
(as is said on the other page, I did not write this so use at own risk - but worked for me)
and then
pip install pyautogui
Thanks to Timo Krall and Kentzo.