Check if my Python has all required packages

后端 未结 7 1863
悲&欢浪女
悲&欢浪女 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:59

    If you're interested in doing this from the command line, pip-missing-reqs will list missing packages. Example:

    $ pip-missing-reqs directory
    Missing requirements:
    directory/exceptions.py:11 dist=grpcio module=grpc
    

    (pip check and pipdeptree --warn fail only audit installed packages for compatibility with each other, without checking requirements.txt.)

提交回复
热议问题