How to install python packages from older version to newer version?

后端 未结 2 1849
小鲜肉
小鲜肉 2021-01-27 02:42

i was working with python 3.7 and i installed recently python 3.8 in linux.

Is there any bash command or script that take a list of all packages of 3.7 and install it on

2条回答
  •  孤街浪徒
    2021-01-27 03:15

    /path_to_3.7_bin/python -m pip freeze > /home/packages_list.txt
    

    then

    /path_to_3.8_bin/python -m pip install -r /home/packages_list.txt
    

提交回复
热议问题