我试图在Openshift上部署一个Python应用程序,但我一直得到以下错误信息。
ImportError.没有名为'gridfs'的模块。没有名为 "gridfs "的模块
这是setup.py文件
from setuptools import setup
setup(name='YourAppName',
version='1.0',
description='OpenShift App',
author='Your Name',
author_email='[email protected]',
url='https://www.python.org/community/sigs/current/distutils-sig',
install_requires=['Flask>=0.7.2', 'MarkupSafe','pymongo','Pillow', 'python-pymongo'],
)
如果你得到的是
ImportError.没有名为'gridfs'的模块。没有名为 "gridfs "的模块
然后运行。
python -m pip install pymongo
或
python3 -m pip install pymongo