python安裝后的目錄在哪里
從官網下載python的安裝包,安裝過程中可選擇裝在C盤或D盤或者其他的磁盤。
如果忘記了安裝在哪里,可以在命令行中使用以下命令
where python
會顯示python的絕對路徑
C:UsersAdministrator>where python
C:UsersAdministratorAppDataLocalProgramsPythonPython37python.exe
C:UsersAdministrator>
使用python
同樣打開命令行,輸入Python,如下
C:UsersAdministrator>python
Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32
Type 'help', 'copyright', 'credits' or 'license' for more information.
>>>
此時便進入了python的交互模式,可以編寫代碼了。
方法擴展:
找不到python安裝路徑解決方法
解決方法一:使用python的命令行
解決方法二:再安裝一次python,就可以看到原本安裝的路徑 。同時,配置好python環境變量
解決方法之三:顯示隱藏文件
到此這篇關于python安裝后的目錄在哪里的文章就介紹到這了,更多相關python安裝后在哪內容請搜索好吧啦網以前的文章或繼續瀏覽下面的相關文章希望大家以后多多支持好吧啦網!
相關文章: