当前位置:主页 > 软件编程 > Python代码 >

python安装后的目录在哪里

时间:2021-02-20 09:11:09 | 栏目:Python代码 | 点击:

从官网下载python的安装包,安装过程中可选择装在C盘或D盘或者其他的磁盘。

如果忘记了安装在哪里,可以在命令行中使用以下命令

where python

会显示python的绝对路径

C:\Users\Administrator>where python

C:\Users\Administrator\AppData\Local\Programs\Python\Python37\python.exe

C:\Users\Administrator>

使用python

同样打开命令行,输入Python,如下

C:\Users\Administrator>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环境变量

解决方法之三:显示隐藏文件

您可能感兴趣的文章:

相关文章