pip install MarkupSafe 出错 Command errored out with exit status 1


换了一台电脑,使用virtualenv创建好了虚拟环境,在使用
pip install -r requirements.txt

安装依赖包时,发现在安装 MarkupSafe 出错 Command errored out with exit status 1,如图

查阅相关文档发现是setuptool版本的问题,python3源中的setuptools已经升级到46以上。所以导致pip安装失败
更新setuptools版本

使用以下方法,升级 setuptools 即可解决

pip install --upgrade pip setuptools==45.2.0


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM