(base) PS C:\Users\LENOVO> pip install opencv-python
Requirement already satisfied: opencv-python in c:\users\lenovo\anaconda3\lib\site-packages (4.7.0.68)
Requirement already satisfied: numpy>=1.17.0 in c:\users\lenovo\anaconda3\lib\site-packages (from opencv-python) (1.21.5)
(base) PS C:\Users\LENOVO> py
Python 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:33:45) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
import cv2
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'cv2'
``Python 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:33:45) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
import cv2 as cv
Traceback (most recent call last):
File "<pyshell#0>", line 1, in
import cv2 as cv
ModuleNotFoundError: No module named 'cv2'
`
how do i solve this
(base) PS C:\Users\LENOVO> pip install opencv-python
Requirement already satisfied: opencv-python in c:\users\lenovo\anaconda3\lib\site-packages (4.7.0.68)
Requirement already satisfied: numpy>=1.17.0 in c:\users\lenovo\anaconda3\lib\site-packages (from opencv-python) (1.21.5)
(base) PS C:\Users\LENOVO> py
Python 3.9.11 (tags/v3.9.11:2de452f, Mar 16 2022, 14:33:45) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
import cv2
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'cv2'
this is what i wanted to do import open cv it has been installed via anaconda
Related
I have sqlalchemy installed but when I try and import sqlachemy it comes up with an error
(base) Benjamats-Air:sqlalchemy_test benjamattesjaroen$ pip install sqlalchemy
Requirement already satisfied: sqlalchemy in /Users/benjamattesjaroen/anaconda3/lib/python3.7/site-packages (1.3.5)
(base) Benjamats-Air:sqlalchemy_test benjamattesjaroen$ python
Python 2.7.10 (default, Feb 7 2017, 00:08:15)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlalchemy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named sqlalchemy
>>>
Having installed with success futures on python 2.7.13, anyone wonder why it's not possible to import it ?
[user#server development]$ source app/bin/activate
(app) [user#server development]$ pip install futures
Requirement already satisfied: futures in ./app/lib/python2.7/site-packages
(app) [user#server development]$ python
Python 2.7.13 (default, Jan 18 2017, 18:22:53)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-55)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import futures
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named futures
thanks in advance.
Facing this issue right now, saw the question:
no module named pylab on windows
I have annaconda and python 2.7 installed. I tried in the python shell:
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named matplotlib
and received the following result. I've checked my PATH variable, and I'm not sure how to resolve.
Thanks in advance.
When I use pip freeze command, it returns
C:\Users\Keshav Reddy>pip freeze
Warning: cannot find svn location for guippy===0.1.5dev-r0
beautifulsoup4==4.4.1
future==0.15.2
## FIXME: could not find svn URL in dependency_links for this package:
guippy===0.1.5dev-r0
keyboard==0.6.5
Pillow==3.1.1
PyAutoGUI==0.9.33
PyMsgBox==1.0.3
pypiwin32==219
PyScreeze==0.1.8
python-subprocess2==0.2.1
PyTweening==1.0.3
pywinauto==0.5.4
requests==2.9.1
robotframework==3.0
SimplePool==0.1
urlopen==1.0.0
virtualenv==14.0.6
but I couldn't import any of these modules.
C:\Users\Keshav Reddy>python
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:38:48) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyautogui
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'pyautogui'
How can I import these modules?
Begin by installing a release of 'guippy' module.
Have you tried downloading Anaconda? It helps alot with downloading modules.
I need help with the scipy Python module. I installed it, but when I try to import it, I get an error (no module named scipy). Why?
Here's the output from my Python interpreter:
Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import scipy
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import scipy
ImportError: No module named scipy