动作:
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