【发布时间】:2015-12-04 08:02:05
【问题描述】:
我正在尝试在 Openshift 上部署 Python 应用程序,但我不断收到以下错误
ImportError: 没有名为“gridfs”的模块
这是 setup.py 文件
from setuptools import setup
setup(name='YourAppName',
version='1.0',
description='OpenShift App',
author='Your Name',
author_email='example@example.com',
url='https://www.python.org/community/sigs/current/distutils-sig',
install_requires=['Flask>=0.7.2', 'MarkupSafe','pymongo','Pillow', 'python-pymongo'],
)
【问题讨论】:
-
执行 pip freeze 以查看所有软件包的安装版本并报告。可能是版本不兼容。
-
Gridfs 是在 Pymongo 之上实现 Gridfs 的包。尝试使用
easy_install或pip安装 Gridfs
标签: python deployment openshift pymongo