2021年还使用python3.5遇到的freeze问题

动作

pip freeze > requirments.txt

问题

1. 出现DEPRECATION: Python 3.5 reached the end of its life on September 13th, 2020. Ple
ase upgrade your Python as Python 3.5 is no longer maintained. pip 21.0 will dro
p support for Python 3.5 in January 2021. pip 21.0 will remove support for this
functionality.用pip安装其他第三方库也出现,但也安装了。

2. freeze是把安装包的版本写到requirements.txt,但是当前没写入

3. pip21.0不支持python3.5,但是我用的是pip20.3.

原因:

查到文章pip 20.3 发布:更改默认依赖解析器、即将停止支持 Python 2.7中

               DEPRECATION:取消支持 Python 3.5,并将在 pip 21.0 中被移除

https://blog.csdn.net/mzl87/article/details/110526878

解决:

更换pip版本

python -m pip install --upgrade pip=20.2.4

再次运行

pip freeze > requirments.txt

 

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值