查看python安裝路徑及安裝的庫


cmd下查看

python安裝路徑:where python

安裝的庫:pip  list 或者 pip freeze      pip list --outlated查看過時的庫(pip list -h)

 

python查看: 

>>> import sys
>>> sys.path
['', 'D:\\python\\django\\mysite\\cmdb', 'C:\\Users\\Administrator\\AppData\\Loc
al\\Programs\\Python\\Python36-32\\python36.zip', 'C:\\Users\\Administrator\\App
Data\\Local\\Programs\\Python\\Python36-32\\DLLs', 'C:\\Users\\Administrator\\Ap
pData\\Local\\Programs\\Python\\Python36-32\\lib', 'C:\\Users\\Administrator\\Ap
pData\\Local\\Programs\\Python\\Python36-32', 'C:\\Users\\Administrator\\AppData
\\Roaming\\Python\\Python36\\site-packages', 'C:\\Users\\Administrator\\AppData\
\Local\\Programs\\Python\\Python36-32\\lib\\site-packages']

 

python 標准庫位置: %python安裝路徑%\Lib

第三方庫位置: %python安裝路徑%\Lib\site-packages


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM