我试图掌握在虚拟环境内工作,我运行了以下内容。
python3 -m venv env
source env/bin/activate
pip3 install flask
然后就出现了这个错误
Requirement already satisfied: flask in /usr/local/lib/python3.7/site-packages (1.1.1)
Requirement already satisfied: Werkzeug>=0.15 in /usr/local/lib/python3.7/site-packages (from flask) (1.0.1)
Requirement already satisfied: Jinja2>=2.10.1 in /usr/local/lib/python3.7/site-packages (from flask) (2.11.1)
Requirement already satisfied: click>=5.1 in /usr/local/lib/python3.7/site-packages (from flask) (7.1.1)
Requirement already satisfied: itsdangerous>=0.24 in /usr/local/lib/python3.7/site-packages (from flask) (1.1.0)
Requirement already satisfied: MarkupSafe>=0.23 in /usr/local/lib/python3.7/site-packages (from Jinja2>=2.10.1->flask) (1.1.1)
我在OSX上安装了Python 3. 8。我对这个问题有点迷茫。
我记得早在一年前,我第一次安装Python 3.x的时候,就遇到了不少麻烦,我觉得可能是我在安装过程中把什么东西弄乱了还是怎么的。
Requirement satisfied意味着所有的依赖关系都已经安装好了。