天天看點

Python 技術篇-pip安裝的python庫緩存位置檢視方法,如何檢視python庫源碼

pip install xxx

安裝庫時,pip 把庫緩存在了:

C:\Users\Administrator\AppData\Local\pip\cache

我的使用者是管理者,是以是 Administrator 。

如果我們想檢視庫的源碼的話,可以直接把位址複制到浏覽器,就會直接下載下傳下來。

chche 不知道有什麼存儲規則,我是沒找到對應的位置。

C:\Users\Administrator>pip install PyHook3
Collecting PyHook3
  Using cached https://files.pythonhosted.org/packages/d2/e9/01e84a297a83e826978
ca917e9ee538b86924c6235b656f3cc81950cda44/PyHook3-1.6.1.tar.gz      

效果圖如下:

Python 技術篇-pip安裝的python庫緩存位置檢視方法,如何檢視python庫源碼

喜歡的點個贊❤吧!