Python安装后默认目录是哪里?
- 内容介绍
- 文章标签
- 相关推荐
本文共计327个文字,预计阅读时间需要2分钟。
从官网下载Python的安装包,安装过程中可以选择安装到C盘、D盘或其他磁盘。如果忘记安装位置,可以在命令行中使用以下命令查看Python的绝对路径:where python结果将显示Python的安装路径,例如:C:\Users\Administrator。
从官网下载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的交互模式,可以编写代码了。
本文共计327个文字,预计阅读时间需要2分钟。
从官网下载Python的安装包,安装过程中可以选择安装到C盘、D盘或其他磁盘。如果忘记安装位置,可以在命令行中使用以下命令查看Python的绝对路径:where python结果将显示Python的安装路径,例如:C:\Users\Administrator。
从官网下载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的交互模式,可以编写代码了。

