Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot import name 'dataproc_v1' from 'google.cloud' (unknown location)

Trying to access Using Dataproc via Jupyter Notebook from the computer, I installed required libraries using pip. However, getting error while importing

import google.cloud.dataproc_v1

Error is as follows:

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-3-fc8862c62c75> in <module>
----> 1 import google.cloud.dataproc_v1

Also tried installing the package python3 -m pip install google-cloud-dataproc. For reference, here is the output of pip list. Any suggestion/ help is appreciated!

Package                  Version
------------------------ ---------
cachetools               4.1.1
certifi                  2020.6.20
chardet                  3.0.4
google-api-core          1.22.2
google-auth              1.21.1
google-cloud-dataproc    2.0.0
googleapis-common-protos 1.52.0
grpcio                   1.32.0
idna                     2.10
libcst                   0.3.10
mypy-extensions          0.4.3
pip                      20.2.2
proto-plus               1.9.1
protobuf                 3.13.0
pyasn1                   0.4.8
pyasn1-modules           0.2.8
pytz                     2020.1
PyYAML                   5.3.1
requests                 2.24.0
rsa                      4.6
setuptools               45.0.0
six                      1.15.0
typing-extensions        3.7.4.3
typing-inspect           0.6.0
urllib3                  1.25.10
wheel                    0.35.1
like image 985
user14257056 Avatar asked Oct 29 '25 02:10

user14257056


1 Answers

try this:

pip install google-cloud-dataproc
like image 134
Afdel Abdollah Avatar answered Oct 31 '25 03:10

Afdel Abdollah



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!