ModuleNotFoundError: No module named 'google.api_core'
See original GitHub issueEnvironment details
- Windows 10
- Python 3.6.10 :: Anaconda, Inc.
- pip 20.2
google-api-python-client
version 2.7.0
Steps to reproduce
- Download release 2.7.0.
python setup.py build
.python setup.py install
. - Run
python
.import apiclient
raises
ModuleNotFoundError: No module named ‘google.api_core’
Guess what
If I move ...\anaconda\lib\site-packages\google_api_core-1.28.0-py3.6.egg\google\api_core
to ...\anaconda\lib\site-packages\google
, then import apiclient
works.
Is this a package resolution problem?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
[Fixed] ModuleNotFoundError: No module named 'google-api ...
How to Fix “ModuleNotFoundError: No module named 'google-api-core'” in PyCharm · Open File > Settings > Project from the PyCharm menu. · Select...
Read more >No module named 'google.api_core.client_options' while ...
I am trying to use Firestore with Python . I have successfully installed the google-cloud-firestore .
Read more >No module named 'google.api_core' · Issue #4395 ... - GitHub
I posted the solution in the comments of that bug (google-cloud-core==1.0.3, not google-api-core). The documentation at https://googleapis.dev/ ...
Read more >ModuleNotFoundError: No module named 'google-api-core'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'google-api-core' How to remove the Mo.
Read more >ModuleNotFoundError: No module named 'google' [228221278]
I keep getting the error ModuleNotFoundError: No module named 'google' when I try to import the package in a python3 terminal. Any advice...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m going to close this issue as I’m not able to reproduce it locally but please feel free to re-open it.
Dear All,
The same problem happens to me. I use a virtual environment.
When I run sample python code from YouTube.channel.list there some error:
File “/home/hape/Documents/Script_Python/VENV/youtube_dl/venv/lib/python3.8/site-packages/google_api_python_client-2.42.0-py3.8.egg/googleapiclient/discovery.py”, line 44, in <module> import google.api_core.client_options ModuleNotFoundError: No module named ‘google.api_core’
Below is my pip list.
Package Version
cachetools 5.0.0
certifi 2021.10.8 charset-normalizer 2.0.12
google-api-core 2.7.1
google-api-python-client 2.42.0
google-auth 2.6.2
google-auth-httplib2 0.1.0
google-auth-oauthlib 0.5.1
googleapis-common-protos 1.56.0
httplib2 0.20.4
idna 3.3
oauthlib 3.2.0
pip 20.0.2
pkg-resources 0.0.0
protobuf 4.0.0rc2
pyasn1 0.4.8
pyasn1-modules 0.2.8
pyparsing 3.0.7
requests 2.27.1
requests-oauthlib 1.3.1
rsa 4.8
setuptools 44.0.0
six 1.16.0
uritemplate 4.1.1
urllib3 1.26.9
youtube-dl 2021.12.17
There is no problem if I install it on my global env. I use Linux. Is there some I missed?
Thank you