相关疑难解决方法(0)

import cloudstorage,SyntaxError:语法无效

我想使用Google云端存储客户端库函数.

为此,我必须这样做import cloudstorage.为了让cloudstorage我下载Google云端存储客户端库.

我尝试导入cloudstorage使用python -c "import cloudstorage".我收到以下错误:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/fghavamian/Documents/PhD_work/Codes/python/convnet_gcloud/cloudstorage/__init__.py", line 20, in <module>
    from .api_utils import RetryParams
  File "/Users/fghavamian/Documents/PhD_work/Codes/python/convnet_gcloud/cloudstorage/api_utils.py", line 173
    except self.retriable_exceptions, e:
                                    ^
SyntaxError: invalid syntax
Run Code Online (Sandbox Code Playgroud)

我错过了什么吗?

python cloud-storage google-cloud-storage

5
推荐指数
1
解决办法
1619
查看次数