Python Openshift导入错误:没有名为';gridfs';
我试图在Openshift上部署Python应用程序,但我一直遇到以下错误 ImportError:没有名为“gridfs”的模块 这是setup.py文件Python Openshift导入错误:没有名为';gridfs';,python,deployment,openshift,pymongo,Python,Deployment,Openshift,Pymongo,我试图在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@exampl
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'],
)
如果你是
ImportError:没有名为“gridfs”的模块
然后跑,
python -m pip install pymongo
或
执行pip冻结以查看您的所有软件包都安装了哪些版本,并进行报告。可能是版本不兼容。Gridfs是Pymongo上Gridfs的实现包。尝试使用
easy\u install
或pip
python3 -m pip install pymongo