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
To install OpenCV
sudo pip install opencv-python
For python 3
sudo pip3 install opencv-python
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!!
Have you gone through all the solutions which are given above? Please share your workaround so that we can resolve it ASAP.
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
$ 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
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
Already have an account? Sign in.