mirror of
https://github.com/Jrohy/python3-install.git
synced 2026-04-03 03:08:18 +00:00
优化环境变量设置
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user