python环境变量是什么意思
python环境变量是什么意思
一、概念
环境变量一般是指在操作系统中指定操作系统运行环境的参数,例如临时文件夹的位置和系统文件夹的位置等。
环境变量是操作系统中具有特定名称的对象,包含一个或多个应用程序使用的信息。
二、作用
当要求系统运行一个程序而不告诉其程序所在的完整路径时,系统不仅应该在当前目录下找到该程序,还应该在path中找到指定的路径。用户通过设置环境变量来更好地运行过程。
三、配置环境变量
配置环境变量有两种方法:
1、在安装python安装包的时候就会有这一项:AddPython版本号topath,将这个选项进行勾选,他会自动为你配置环境变量。
2、假如一个手抖,不小心没勾选这个选项,也没关系,还是有补救措施的,第二种方法奉上:
(1)找到开始键
(2)单击打开python加版本号的这个文件夹,然后找到并右键单击这个Python加版本号(64-bit)的东西。
(3)按照顺序一直到打开文件位置:
(4)右键单击python加版本号(64-bit),然后单击属性。
(5)找到目标,然后复制这个路径。
(6)找到此电脑,右键单击此电脑找到属性。
(7)右键单击属性,找到高级系统设置,左键单击高级系统设置。
(8)单击环境变量
(9)找系统变量,再双击Path。
(10)先看看自己有没有python相关路径,如果有,看看后面有没有分号,如果有就直接点确定就可以了,如果没有,就在后面加个分号再点确定。
以上就是python环境变量的介绍,大家在安装一些软件时,都会要进行对应的环境配置,学会后赶紧试试吧。更多Python学习教程请关注IT培训机构:千锋教育。

猜你喜欢LIKE
相关推荐HOT
更多>>
Python如何在画布中绘制多个图表?
python如何在画布中绘制多个图表?1、说明在绘制图表时,Matplotlib模块默认先创建一块画布,然后将绘制的图表显示在画布上。若要在一个画布上画...详情>>
2023-11-14 21:04:27
python@是什么意思
python中@是什么意思通常我们所见的@符号是用于邮箱中,而在python中@符号也有着重要的作用,一个是表示修饰符,另一个则是表示矩阵乘法。表示...详情>>
2023-11-14 20:07:01
python进程池的使用注意
python进程池的使用注意1、使用注意(1)使用池时,如果未指定进程数,则默认为CPU核心数。(2)核心数量对应于计算机的逻辑处理器数量(任务管理器-...详情>>
2023-11-14 18:42:08
python多线程中join的应用场景
python多线程中join的应用场景1、线程的join()方法表示等这个线程运行完毕,程序再往下运行。我们来看下面的例子fromthreadingimportThreadt=ti...详情>>
2023-11-14 18:16:56热门推荐
python中scipy.linalg.inv()功能是什么?
沸requests在python中如何发送请求
热python自定义模块的注意点
热python如何将相对路径转换为绝对路径?
新python在列表中和列表末尾添加元素的方法
Python如何在画布中绘制多个图表?
pythonQueue在python的实例化
python@是什么意思
pythonconftest如何使用?
python列表运算详解
python进程池的使用注意
python多线程中join的应用场景
python异步中loop抛出异常的解决
pythontime模块处理系统时间的函数
技术干货






