烧瓶已安装,但ModuleNotFoundError:没有名为“烧瓶"的模块

烧瓶已安装,但ModuleNotFoundError:没有名为“烧瓶

问题描述:

我的Mac上安装了烧瓶,

i have flask installed in my Mac,

pip list | grep Flask
Flask       1.0.2   

但是当我执行python文件时,它显示类似

but when i execute a python file, it shows error like

from Flask import Flask, render_template
ModuleNotFoundError: No module named 'Flask'

用于python和flask的目录是

the directories used for python and flask are

which python
/usr/bin/python

which flask
/Library/Frameworks/Python.framework/Versions/3.5/bin/flask

所以我想到了运行virtualenv,但是我什至无法安装它并显示错误消息

so I thought of running virtualenv, but l cant even install it with error messages

s3transfer 0.1.8 requires botocore<2.0.0,>=1.3.0, which is not installed.

然后我尝试

sudo pip install "botocore<2.0.0,>=1.3.0"
Cannot uninstall 'six'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

这是由于python版本冲突而发生的吗?有人可以帮忙吗?

Is this happening because of conflicting python versions? can anyone help please?

烧瓶模块名称应小写.

from flask import Flask