Got a lot of online solutions are PIP install opencv - python, I tried, the result is that
Then also tried conda install opencv
Then also tried PIP install opencv - contrib - python
After finish these actions also tried PIP install cv2
But still
Actually the first reason is that when writing program to the module 'cv2. Cv2' has no attribute 'shape'
Then I
PIP uninstall opencv - contrib - python
PIP uninstall opencv - python
PIP install opencv - python
PIP install opencv - contrib - python
The results appeared when I was running the code again No module named 'cv2'
For big help!!!!!!!!!!! Too bad!
CodePudding user response:
You can check the import package,,,Could you install PIP and running the python environment is inconsistent