我的工作是Ubuntu14.04,32位。我在我的服务器代码中得到了这个错误:
进口云量 ImportError:没有名为cloudstorage的模块
我运行这个命令来安装GCS模块:
pip安装GoogleAppEngineCloudStorageClient -t /home/john/software/google_appengine/lib/ -force-重新安装
我的同事在Windows 7上安装了云存储模块,只需将“cloudstorage”文件夹复制到GAE/lib文件夹。在他的电脑上运行代码不会产生ImportError。我也试过这个
如何在Linux上安装云存储模块以避免ImportError?
发布于 2014-08-03 12:27:11
首先,您需要安装客户机,使用svn获得演示和测试代码:
下载:svn checkout http://appengine-gcs-client.googlecode.com/svn/trunk/python gcs-client
然后是cd gcs-client/src和sudo/python or python setup.py install
您可以使用pip,但无法获得演示和测试代码:
pip install GoogleAppEngineCloudStorageClient -t <your_app_directory/lib>发布于 2014-11-18 21:09:58
库需要安装在应用程序目录中。Docs建议使用PIP将其放在<app>/lib中::
pip install GoogleAppEngineCloudStorageClient -t <your_app_directory/lib>他们没有提到的是,如果您必须创建一个lib目录,则需要在lib中放置一个(空的) __init__.py,以便Python将其读取为重要的目录。您还需要说import lib.cloudstorage。
发布于 2015-04-23 22:24:05
试试这个:
pip install GoogleAppEngineCloudStorageClient -t <app_root>然后测试它是否适用于:
python -c "import cloudstorage"https://stackoverflow.com/questions/25100031
复制相似问题