GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — env python · enoughbr/StarterLearningPython@27c8120

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • 219.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎219.md‎

Copy file name to clipboardExpand all lines: 219.md
+5-1Lines changed: 5 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
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 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.