ERROR: No matching distribution found for MarkupSafe==1.0
1、解决:显然是python setuptools的版本问题,然后更改setuptools版本:
pip install --upgrade pip setuptools==45.2.0
2、再次尝试安装
再次报错
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: 'd:\\anaconda3\\envs\\lecture01_tf\\lib\\site-packages\\~arkupsafe\\_speedups.cp36-win_amd64.pyd'
Consider using the `--user` option or check the permissions.
3、显然Consider using the --user
option or check the permissions.
加上 --user选项
pip install --user MarkupSafe==1.0