Sumitra
Sumitra

Reputation: 11

ModuleNotFoundError on pip install

I'm a beginner in Python, using Python version 3.6.5. Downloaded the source code from github, and I am unable to download/install modules using pip install <<module name>>

On running the initial .py script, I got this error:

ModuleNotFoundError: No module named 'cvutils.cvdetector'

On further analysis, I found the code from cvutils.cvdetector import CvDetector in one of the internal modules. On pip install cvutils.cvdetector on command prompt, the error I got was

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

cvutils is already installed in ..\AppData\Local\Programs\Python\Python36-32\Lib\site-packages\cvutils. Is there any other dependency I must add for this to work?

Upvotes: 0

Views: 2826

Answers (1)

CleonPeaches
CleonPeaches

Reputation: 62

I had a similar problem the other day.

First, you can try running python -m pip install <module_name>. Sometimes depending on how your environment is set up, just running pip install <module_name> doesn't work.

If that doesn't fix your problem you can uninstall Python and manually delete all related directories that were created upon install (mine was located in C:\Users\username\AppData\Local\Programs\Python). I did this and upon reinstall, I no longer had the error.

Upvotes: 1

Related Questions