I am getting the error 'ModuleNotFoundError: No module named 'win32gui''. Please brief me the instructions on how can I resolve this issue on my anaconda on mac.
You must install it from the version hosted on the pip package manager. You can do this with the following command:
pip install win32gui
Related
I needed to upgrade my python to install SNScrape. After I upgrade the python, there is an error whenever I try to install packages. In the
error screenshot, it says ImportError: cannot import name 'InvalidSchemeCombination' from 'pip._internal.exceptions' (C:\Users\ASUS\anaconda3\lib\site-packages\pip_internal\exceptions.py).
I am working on Anaconda prompt, windows 10. Can somebody help me?
Should I just re-install the Anaconda? Thank you
Maybe you can upgrade python to 3.9
Then reinstall pip(upgrade it)
py -m pip install -U pip
I have installed the NewsApi via my Mac OS terminal using pip3 install newsapi-python, and when I check my anaconda environment packages I see newsapi installed. However when I try to use the following command I get an error:
from newsapi import NewsApiClient
error:
ImportError: cannot import name 'NewsApiClient' from 'newsapi' (/opt/anaconda3/lib/python3.8/site-packages/newsapi/__init__.py)
Has anybody else experienced this?
Try this command in main django folder:
pip install newsapi-python
If you have saved your python filename as "news-api.py" or the same as the package name you might face this error. Try renaming your file.
Installing newsapi
upgrade pip version
pip install --upgrade pip
installing newsapi using command prompt
pip install newsapi-python
when I import syft in Python3.7, it says: ModuleNotFoundError: No module named 'google.protobuf.reflection'.
when I import TensorFlow, it says: ImportError: cannot import name 'descriptor' from 'google.protobuf' (unknown location).
How to solve these two problems?
The related software information are:
Mac OSX
Python3.7.3
protoc version is 3.8.0
pip3 is located in:/Users/susan/anaconda3/bin/pip3
Uninstall google and protobuf and install them again
pip uninstall protobuf
pip uninstall google
pip install google
pip install --upgrade protobuf
The most important thing is that you should use the latest stable version of protobuf.
I followed the instructions to install opencv in ubuntu from the link https://linuxize.com/post/how-to-install-opencv-on-ubuntu-18-04/#disqus_thread.
The module is installed properly. But when I import it in python I get the error "No module named 'cv2'"
What can I do?
If you are using Python3:
pip3 install opencv-python
To install the latest stable version of opencv-python 4.1.2.30 with pip, use the below command:
pip install opencv-python
I've installed wx for python on windows with
pip install wxpython
The python script I'm using tries to import wx.gizmos. The program fails there with error "No module names gizmos". So i've tried to install it with
pip install gizmos,
pip install wxgizmos,
pip install wx.gizmos,
pip install wxpython.gizmos,
pip install wxpythongizmos.
Error is "No matching distribution found for..."
I've been to https://wxpython.org/Phoenix/docs/html/main.html and it appears gizmos is not there and so can't be used but the python script needs it.
Is there a way of installing this or a way arond this ?
I uninstalled python wx using:
pip uninstall wxpython.
and reinstalled it from here:
https://sourceforge.net/projects/wxpython/files/wxPython/2.9.5.0/wxPython2.9-win64-2.9.5.0-py27.exe/download