Check if my Python has all required packages

后端 未结 7 1840
悲&欢浪女
悲&欢浪女 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.)

    0 讨论(0)
提交回复
热议问题