Closed Cyberbolt closed 4 years ago
我又在win10(Python3.8)上试了,还是相同的问题呢,请问是什么原因呢
出现这个导入报错是因为 setuptools 46.0.0 版本删掉了弃用的 Feature
。解决方法有三种,你可以任选一种:
(venv) $ pip install setuptools==39.2.0
(venv) $ pip install -r requirements.txt
$ python3 -m venv venv
MarkupSafe==1.1.1
已解决,谢谢!
很抱歉我遇到类似的问题 环境:MacOS pyenv创建的pyenv-virtuals 3.6env 问题1:当我使用 pip install -r requirements.txt
当我输入: flask forge 提示:pyenv: flask: command not found
注意到: Error: pg_config executable not found.
尝试解决方法: 1.安装postgresq
brew install postgresql
2.找到相应的路径 我的路径:/usr/local/Cellar/postgresql/12.2/bin 尝试:
export PATH=/usr/local/Cellar/postgresql/12.2/bin:$PATH
3.解决问题 使用
pip install -r requirements.txt
安装成功
下面是我的操作方法: 我通过如下方式创建虚拟环境并激活 然后安装 requirements.txt 时出错,如图 试了很久没找到解决方法,是什么原因呢,应该怎么操作才能安装好依赖。非常感谢哦!
环境:CentOS 7,Python 3.6.8