Add no pip install

This commit is contained in:
Jrohy
2019-03-17 15:25:42 +08:00
parent f11c0e40e2
commit c1b598a790
2 changed files with 14 additions and 3 deletions

View File

@@ -17,6 +17,12 @@ bash <(curl -sL https://git.io/fhqMz) --latest
```
bash <(curl -sL https://git.io/fhqMz) -v 3.6.5
```
## Only install python3
```
bash <(curl -sL https://git.io/fhqMz) --nopip
```
find the special version in [python_version_list](https://www.python.org/ftp/python/), script will auto download and compile it
if os openssl version less than **1.0.2** , script will auto install latest openssl before compile python3, it may be have risk(except new install os), so recommend install without compile way

View File

@@ -10,6 +10,8 @@ OPENSSL_VERSION="1.1.1b"
LATEST=0
NO_PIP=0
ORIGIN_PATH=$(pwd)
# cancel centos alias
@@ -28,8 +30,11 @@ colorEcho(){
#######get params#########
while [[ $# > 0 ]];do
key="$1"
case $key in
KEY="$1"
case $KEY in
--nopip)
NO_PIP=1
;;
--latest)
LATEST=1
;;
@@ -163,7 +168,7 @@ main(){
webInstall
fi
# install latest pip
python3 <(curl -sL https://bootstrap.pypa.io/get-pip.py)
[[ $NO_PIP == 0 ]] && python3 <(curl -sL https://bootstrap.pypa.io/get-pip.py)
}
main