Find all packages installed with easy_install/pip?

前端 未结 18 1231
醉话见心
醉话见心 2020-11-27 08:47

Is there a way to find all Python PyPI packages that were installed with easy_install or pip? I mean, excluding everything that was/is installed with the distributions tool

18条回答
  •  粉色の甜心
    2020-11-27 09:39

    Adding to @Paul Woolcock's answer,

    pip freeze > requirements.txt
    

    will create a requirements file with all installed packages along with the installed version numbers in the active environment at the current location. Running

    pip install -r requirements.txt
    

    will install the packages specified in the requirements file.

提交回复
热议问题