pip下载库,出现的问题

错误类型一:AttributeError: 'Requirement' object has no attribute 'project_name'

错误原因:环境中,已存在所要安装的库

解决方法:pip uninstall ***   (卸载环境中的版本库)

                  pip install ***    (下载对应的版本库)

https://blog.csdn.net/blueheart20/article/details/52553984

 

 

错误类型二:TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

错误原因:镜像源出现问题

解决方法:法一:pip包管理 升级

                   pip install --upgrade pip

                   法二:更换国内镜像源

https://mp.csdn.net/postedit/89527527

你可能感兴趣的:(django框架)