0
我通過pip安裝谷歌雲存儲模塊。它作爲獨立進口罰款。安裝谷歌雲存儲模塊0.22.0,導入罰款本身,但不作爲導入導入
>>> import google.cloud.storage
如果導入文件在我正在運行的文件中,它可以正常導入。如果我從另一個導入它的模塊中導入文件,它不會導入。
python dag.py list_tasks
File "/home/test/hecks/airflow-dags/dags/extract/api_extract.py", line 3, in <module>
from google.cloud.storage import Client
ImportError: No module named cloud.storage