+1 vote
in Programming Languages by (37.8k points)

I installed some python packages using the pip command on my Ubuntu machine. How to find the folder of those packages?

1 Answer

+4 votes
by (45.3k points)
selected by
 
Best answer

You can find the location of a package using the command:  pip show <package name>

The following example shows the location of "xgboost" on my Ubuntu machine.

pip show xgboost

Name: xgboost

Version: 1.7.1

Summary: XGBoost Python Package

Home-page: https ://github.com/dmlc/xgboost

Author: 

Author-email: 

License: Apache-2.0

Location: /home/****/envpycoding/lib/python3.10/site-packages

Requires: numpy, scipy

Required-by: 


...