Python的安裝位置與Python庫
如何查看Python的安裝位置:
輸入 where python
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
pyc文件:
pyc是二進制文件
py文件作為模塊被import的時候,python為了提高解析速度。會對所有作為模塊的py文件先作一個類似編譯的動作。
python就不用再重新編譯py文件。pyc不是拿來看的,是為了提高程序運行速度。要看源代碼的話打開py文件即可。
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Lib和libs:
python文件夾下的lib和libs區別,lib是被reference的,libs是被include。
Scripts:腳本文件夾,是可執行文件。
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
cmd或者終端下輸入:python 可以進入交互模式>>>
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
相關連接:
如何查看Python 安裝位置以及已經安裝的庫https://blog.csdn.net/JennyChen66/article/details/78487228
Python的安裝位置與Python庫