pip or pip3 update all packages

$ pip freeze > requirements.txt
Open the text file, replace the == with >=, or have sed do it for you:

$ sed -i ‘s/==/>=/g’ requirements.txt
and execute:

$ pip install -r requirements.txt –upgrade

 

 

https://stackoverflow.com/questions/2720014/how-to-upgrade-all-python-packages-with-pip

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据