优化环境变量设置

This commit is contained in:
Jrohy
2020-10-28 11:42:12 +08:00
parent 5e0d3c9adf
commit e9493a997d
2 changed files with 5 additions and 5 deletions

View File

@@ -5,22 +5,22 @@ support **CentOS 6+/Debian 8+/Ubuntu 14+**
## Install without compile(recommend)
```
bash <(curl -sL https://python3.netlify.app/install.sh)
source <(curl -sL https://python3.netlify.app/install.sh)
```
## Install with compile(latest version)
```
bash <(curl -sL https://python3.netlify.app/install.sh) --latest
source <(curl -sL https://python3.netlify.app/install.sh) --latest
```
## Install with compile(special version)
```
bash <(curl -sL https://python3.netlify.app/install.sh) -v 3.6.5
source <(curl -sL https://python3.netlify.app/install.sh) -v 3.6.5
```
## Only install python3
```
bash <(curl -sL https://python3.netlify.app/install.sh) --nopip
source <(curl -sL https://python3.netlify.app/install.sh) --nopip
```
find the special version in [python_version_list](https://www.python.org/ftp/python/), script will auto download and compile it

View File

@@ -67,7 +67,7 @@ checkSys() {
fi
# 缺失/usr/local/bin路径时自动添加
[[ -z `echo $PATH|grep /usr/local/bin` ]] && { echo 'export PATH=$PATH:/usr/local/bin' >> /etc/profile; source /etc/profile; }
[[ -z `echo $PATH|grep /usr/local/bin` ]] && { echo 'export PATH=$PATH:/usr/local/bin' >> /etc/bashrc; source /etc/bashrc; }
}
commonDependent(){