How do I know if a Python package is installed Linux?

Ngân Lam

New member
How do I know if a Python package is installed Linux?
Answer
Check the version of Python package / library
  1. Get the version in Python script: __version__ attribute.
  2. Check with pip command. List installed packages: pip list. List installed packages: pip freeze. Check details of installed packages: pip show.
  3. Check with conda command: conda list.
 

Tìm kiếm

Back
Top