1. 程式人生 > >如何查詢python安裝包的路徑site-packages?

如何查詢python安裝包的路徑site-packages?

使用命令:

python -m site

python -m site --user-site


注意當檢視指定版本的python的安裝包時,需要指定python版本,比如python2.7.15 -m site

 

參考:https://stackoverflow.com/questions/122327/how-do-i-find-the-location-of-my-python-site-packages-directory