49964/error-while-installing-cv2-module-in-pycharm
I'm trying to install the cv2 module on pycharm but I end up with the following error:
Go to tools -> python console -> terminal
Execute the following pip install:
pip install opencv-pyhton
Hi, @Dinesh,
To install OpenCV
For python2
sudo pip install opencv-python
For python 3
sudo pip3 install opencv-python
Try this.
Hello @Dinesh kumar sirvi
pip is run from the command line, not the Python interpreter. It is a program that installs modules, so you can use them from Python. Once you have installed the module, then you can open the Python shell and do import .
The Python shell is not a command line, it is an interactive interpreter. You type Python code into it, not commands.
other reason might be the issue is related to too old pip and can be fixed by running:
pip install --upgrade pip
You can refer this opencv-python docs if it doesn't solve from my above command.
Hope it works!!
Hi, @There,
Have you gone through all the solutions which are given above? Please share your workaround so that we can resolve it ASAP.
Hi, If you successfully installed opencv in your ...READ MORE
Try the following: Go to Files -> Settings ...READ MORE
I would recommend you go with anaconda ...READ MORE
Hi, @There, $ pip install gevent --pre $ pip ...READ MORE
You can try doing the following : go ...READ MORE
Ya, this is a problem with installing ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Matplotlib requires the following dependencies: Python (>= 3.6) FreeType ...READ MORE
Refer to the below screenshots: Then set a ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.