[英]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.