Check if my Python has all required packages

后端 未结 7 1874
悲&欢浪女
悲&欢浪女 2020-12-23 09:53

I have a requirements.txt file with a list of packages that are required for my virtual environment. Is it possible to find out whether all the packages mention

7条回答
  •  悲&欢浪女
    2020-12-23 10:35

    You can run pip freeze to see what you have installed and compare it to your requirements.txt file.

    If you want to install missing modules you can run pip install -r requirements.txt and that will install any missing modules and tell you at the end which ones were missing and installed.

提交回复
热议问题