1

I've tried to import opencv to Pycharm, but this error pops up:

Collecting cv2

Could not find a version that satisfies the requirement cv2 (from versions: ) No matching distribution found for cv2

Can you please help me?

2
  • What is the opencv version that you want to install? Commented Feb 29, 2020 at 12:58
  • I just wrote pip install opencv-python into the command line, should i specify the version? Commented Feb 29, 2020 at 13:00

2 Answers 2

0
  1. Install opencv with:

    pip3 install opencv-python

  2. Make sure you are using the correct interpreter for your project in PyCharm. Go to File\Settings...\Project\Project Interpreter and ensure opencv is listed under the Python interpreter you wish to use.

Sign up to request clarification or add additional context in comments.

9 Comments

its not listed there, but when I run pip3 install opencv-python this is what i've got: Requirement already satisfied: opencv-python in c:\users\zolibil37\appdata\local\programs\python\python38-32\lib\site-packages (4.2.0.32) Requirement already satisfied: numpy>=1.17.3 in c:\users\zolibil37\appdata\local\programs\python\python38-32\lib\site-packages (from opencv-python) (1.18.1)
Ok, do you have more than one interpretor in the Interpreter list? Check the packages for all if yes.
Yes, there is like 20 interpretors.
Are you sure? I am referring to the dropdown list where it says "Python 3.x..." not the list of packages under that. I hope you don't have 20 versions of Python installed :)
Oops, sorry. There is only one Python3.8(venv)
|
0

It seems that you are using python 3.8. Opencv still not applicable for python 3.8. In your situation, I recommend you to use python 3.7.

Steps:

1. uninstall the current python.

2. Install python 3.7. 

3. Add it to the path. 

4. When you create a new project make sure to use Python 3.7 as shown below:

Python3.7

Finally, Good luck. ^_*

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.