简体   繁体   English

通过pip安装Google Cloud Storage客户端库-Python GAE

[英]Install Google Cloud Storage Client Library with pip — Python GAE

I am trying to use pip to install the Google Cloud Storage Client Library for Google App Engine. 我正在尝试使用pip安装适用于Google App Engine的Google Cloud Storage客户端库。 I appreciate any hints you may have. 非常感谢您的任何提示。 My documentation says to enter this in the command prompt: 我的文档说要在命令提示符下输入:

pip install GoogleAppEngineCloudStorageClient -t <app_root>

so I am literally entering: 所以我从字面上输入:

pip install GoogleAppEngineCloudStorageClient -t C:\Program Files (x86)\Google\google_appengine

but i keep getting an error regarding a "Missing distribution spec": 但我不断收到有关“缺少分配规范”的错误:

Exception:
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\pip\basecommand.py", line 232, in main
    status = self.run(options, args)
  File "C:\Python27\lib\site-packages\pip\commands\install.py", line 305, in run

    name, None, isolated=options.isolated_mode,
  File "C:\Python27\lib\site-packages\pip\req\req_install.py", line 181, in from
_line
    isolated=isolated)
  File "C:\Python27\lib\site-packages\pip\req\req_install.py", line 54, in __ini
t__
    req = pkg_resources.Requirement.parse(req)
  File "C:\Python27\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", li
ne 2873, in parse
    reqs = list(parse_requirements(s))
  File "C:\Python27\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", li
ne 2807, in parse_requirements
    raise ValueError("Missing distribution spec", line)
ValueError: ('Missing distribution spec', '(x86)\\Google\\google_appengine')

As for your current error, since there are spaces in your path you should quote it: 至于您当前的错误,由于您的路径中有空格,因此应将其引用:

pip install GoogleAppEngineCloudStorageClient -t "C:\Program Files (x86)\Google\google_appengine"

However, the directory you should install to is your actual project directory, as in the one that contains your app.yaml . 但是,您应该安装到的目录是您实际的项目目录,如包含app.yaml

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何安装python库 - google-api-python-client-gae? - How to install the python library - google-api-python-client-gae? 在Ubuntu 14.04上安装python谷歌云存储客户端 - install python google cloud storage client on Ubuntu 14.04 如何使用 Python 客户端库修改 Google Cloud Storage object? - How to modify a Google Cloud Storage object using Python client library? 如何使用Python pip安装google.cloud? - How to install google.cloud with Python pip? 使用于访问谷歌云存储的谷歌python客户端库达到了一个存根API - Make the Google python client library for accessing Google cloud storage hit a stubbed API 适用于Google云端存储和大文件的Python客户端 - Python Client for Google Cloud Storage and large files 使用Google Cloud Storage python客户端进行批量请求 - Batch request with Google Cloud Storage python client 使用Python api-client-library将文本文件上传到Google Cloud Storage。 适用于图片,而非文字 - Upload text file to Google Cloud Storage with Python api-client-library. Works with image, not text 如何在谷歌云存储 python 库中正确使用 create_anonymous_client() 函数来访问公共存储桶? - How to properly use create_anonymous_client() function in google cloud storage python library for access on public buckets? Google Cloud Storage Python Client Library 中的 list_blobs function 中的分页是如何工作的 - How does paging work in the list_blobs function in Google Cloud Storage Python Client Library
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM