Skip to content

Commit 27c8120

Browse files
committed
env python
1 parent 312582c commit 27c8120

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎219.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,11 @@ Python不是一个封闭的体系,是一个开放系统。开放系统的最
175175

176176
vim /etc/profile
177177

178-
提醒要用root权限,在打开的文件最后增加`export PATH = /home/qw/python:$PAT`,然后保存退出即可。
178+
提醒要用root权限,在打开的文件最后增加`export PYTHONPATH = “$PYTHONPATH:/home/qw/python”`,然后保存退出即可。
179+
180+
环境变量更改之后,用户下次登录时生效,如果想立刻生效,则要执行下面的语句(此处感谢[Hsinwe](https://github.com/Hsinwe)朋友的指正):
181+
182+
$ source /etc/profile
179183

180184
注意,我是在`~/python`目录下输入`python`,进入到交互模式:
181185

0 commit comments

Comments
 (0)