问题描述
我正在使用 Ubuntu 14.04,32 位.我的 Google App Engine 服务器代码出现此错误:
导入云存储
ImportError: 没有名为 cloudstorage 的模块
我运行这个命令来安装 GCS 模块:
pip install GoogleAppEngineCloudStorageClient -t/home/john/software/google_appengine/lib/--force-reinstall
我的同事只需将cloudstorage"文件夹复制到 GAE/lib 文件夹即可在 Windows 7 上安装了 cloudstorage 模块.在他的 PC 上运行代码不会产生 ImportError.我也试过这个
如何在 Linux 上安装 cloudstorage 模块以避免 ImportError?
首先需要安装客户端,使用svn获取demo和测试代码:
下载:svn checkout http://appengine-gcs-client.googlecode.com/svn/trunk/python gcs-client
然后 cd gcs-client/src
和 sudo/python 或 python setup.py install
你可以使用 pip 但你不会得到演示和测试代码:
pip install GoogleAppEngineCloudStorageClient -t <your_app_directory/lib>
I am working on Ubuntu 14.04, 32 bit. I am getting this error in my Google App Engine server code:
I ran this command to install the GCS module:
My coworker installed the cloudstorage module on Windows 7 by simply copying the 'cloudstorage' folder to the GAE/lib folder. Running the code on his PC does not produce ImportError. I also tried this
How can I install the cloudstorage module on Linux to avoid the ImportError?
First you need to install the client, using svn you get the demos and test code:
Download: svn checkout http://appengine-gcs-client.googlecode.com/svn/trunk/python gcs-client
Then cd gcs-client/src
and sudo/python or python setup.py install
You can use pip but you won't get the demos and test code:
pip install GoogleAppEngineCloudStorageClient -t <your_app_directory/lib>
这篇关于在 Ubuntu 14.04 上安装 python 谷歌云存储客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!