提交 3308e3c4 编写于 作者: T tianshuo78520a

update python_list;test=develop

上级 4dde620e
...@@ -3,6 +3,13 @@ ...@@ -3,6 +3,13 @@
path='http://paddlepaddle.org/download?url=' path='http://paddlepaddle.org/download?url='
#release_version=`curl -s https://pypi.org/project/paddlepaddle/|grep -E "/project/paddlepaddle/"|grep "release"|awk -F '/' '{print $(NF-1)}'|head -1` #release_version=`curl -s https://pypi.org/project/paddlepaddle/|grep -E "/project/paddlepaddle/"|grep "release"|awk -F '/' '{print $(NF-1)}'|head -1`
release_version=1.2.0 release_version=1.2.0
python_list=(
"27"
"35"
"36"
"37"
)
function use_cpu(){ function use_cpu(){
while true while true
...@@ -314,14 +321,14 @@ function checkLinuxAVX(){ ...@@ -314,14 +321,14 @@ function checkLinuxAVX(){
while true while true
do do
if [[ "$AVX" != "" ]];then if [[ "$AVX" != "" ]];then
AVX=avx AVX="avx"
break break
else else
if [ "$CUDA" == "8" -a "$CUDNN" == "7" ] || [ "$GPU" == "cpu" ];then if [ "$CUDA" == "8" -a "$CUDNN" == "7" ] || [ "$GPU" == "cpu" ];then
AVX=navx AVX="noavx"
break break
else else
echo "我们仅支持纯CPU或GPU with CUDA 8 cuDNN 7 下navx版本的安装,请使用cat /proc/cpuinfo | grep avx检查您计算机的avx指令集支持情况" echo "我们仅支持纯CPU或GPU with CUDA 8 cuDNN 7 下noavx版本的安装,请使用cat /proc/cpuinfo | grep avx检查您计算机的avx指令集支持情况"
break break
fi fi
fi fi
...@@ -331,7 +338,7 @@ function checkLinuxAVX(){ ...@@ -331,7 +338,7 @@ function checkLinuxAVX(){
function PipLinuxInstall(){ function PipLinuxInstall(){
wheel_cpu_release="http://paddle-wheel.bj.bcebos.com/${release_version}-${GPU}-${AVX}-${math}/paddlepaddle-${release_version}-cp${python_version}-cp${python_version}m${uncode}-linux_x86_64.whl" wheel_cpu_release="http://paddle-wheel.bj.bcebos.com/${release_version}-${GPU}-${AVX}-${math}/paddlepaddle-${release_version}-cp${python_version}-cp${python_version}m${uncode}-linux_x86_64.whl"
wheel_gpu_release="http://paddle-wheel.bj.bcebos.com/${release_version}-gpu-cuda${CUDA}-cudnn${CUDNN}-${AVX}-${math}/paddlepaddle_gpu-${release_version}.post${CUDA}${CUDNN}-cp${python_version}-cp${python_version}m${uncode}-linux_x86_64.whl" wheel_gpu_release="http://paddle-wheel.bj.bcebos.com/${release_version}-gpu-cuda${CUDA}-cudnn${CUDNN}-${AVX}-${math}/paddlepaddle_gpu-${release_version}.post${CUDA}${CUDNN}-cp${python_version}-cp${python_version}m${uncode}-linux_x86_64.whl"
wheel_gpu_release_navx="http://paddle-wheel.bj.bcebos.com/${release_version}-gpu-cuda${CUDA}-cudnn${CUDNN}-${AVX}-${math}/paddlepaddle_gpu-${release_version}-cp${python_version}-cp${python_version}m${uncode}-linux_x86_64.whl" wheel_gpu_release_noavx="http://paddle-wheel.bj.bcebos.com/${release_version}-gpu-cuda${CUDA}-cudnn${CUDNN}-${AVX}-${math}/paddlepaddle_gpu-${release_version}-cp${python_version}-cp${python_version}m${uncode}-linux_x86_64.whl"
wheel_cpu_develop="http://paddle-wheel.bj.bcebos.com/latest-cpu-${AVX}-${math}/paddlepaddle-latest-cp${python_version}-cp${python_version}m${uncode}-linux_x86_64.whl" wheel_cpu_develop="http://paddle-wheel.bj.bcebos.com/latest-cpu-${AVX}-${math}/paddlepaddle-latest-cp${python_version}-cp${python_version}m${uncode}-linux_x86_64.whl"
wheel_gpu_develop="http://paddle-wheel.bj.bcebos.com/latest-gpu-cuda${CUDA}-cudnn${CUDNN}-${AVX}-${math}/paddlepaddle_gpu-latest-cp${python_version}-cp${python_version}m${uncode}-linux_x86_64.whl" wheel_gpu_develop="http://paddle-wheel.bj.bcebos.com/latest-gpu-cuda${CUDA}-cudnn${CUDNN}-${AVX}-${math}/paddlepaddle_gpu-latest-cp${python_version}-cp${python_version}m${uncode}-linux_x86_64.whl"
...@@ -345,7 +352,7 @@ function PipLinuxInstall(){ ...@@ -345,7 +352,7 @@ function PipLinuxInstall(){
else else
rm -rf `echo $wheel_cpu_release_nvax|awk -F '/' '{print $NF}'` rm -rf `echo $wheel_cpu_release_nvax|awk -F '/' '{print $NF}'`
wget $wheel_cpu_release_nvax wget $wheel_cpu_release_nvax
$pip_path install --user -i https://mirrors.aliyun.com/pypi/simple --trusted-host=mirrors.aliyun.com $wheel_gpu_release_navx $pip_path install --user -i https://mirrors.aliyun.com/pypi/simple --trusted-host=mirrors.aliyun.com $wheel_gpu_release_noavx
fi fi
else else
rm -rf `echo $wheel_cpu_develop|awk -F '/' '{print $NF}'` rm -rf `echo $wheel_cpu_develop|awk -F '/' '{print $NF}'`
...@@ -383,13 +390,6 @@ function checkLinuxGPU(){ ...@@ -383,13 +390,6 @@ function checkLinuxGPU(){
} }
function linux(){ function linux(){
python_list=(
"27"
"35"
"36"
"37"
)
gpu_list=( gpu_list=(
"GeForce 410M" "GeForce 410M"
"GeForce 610M" "GeForce 610M"
...@@ -685,12 +685,13 @@ function checkMacPythonVersion(){ ...@@ -685,12 +685,13 @@ function checkMacPythonVersion(){
if [[ $python_brief_version == "27" ]];then if [[ $python_brief_version == "27" ]];then
uncode=`python -c "import pip._internal;print(pip._internal.pep425tags.get_supported())"|grep "cp27"` uncode=`python -c "import pip._internal;print(pip._internal.pep425tags.get_supported())"|grep "cp27"`
if [[ $uncode == "" ]];then if [[ $uncode == "" ]];then
uncode=mu uncode="mu"
else else
uncode=m uncode="m"
fi fi
fi fi
version_list=`echo "${python_list[@]}" | grep "$python_version" ` echo ${python_list[@]}
version_list=`echo "${python_list[@]}" | grep "$python_brief_version" `
if [ "$version_list" != "" ];then if [ "$version_list" != "" ];then
break break
else else
...@@ -704,7 +705,7 @@ function checkMacPythonVersion(){ ...@@ -704,7 +705,7 @@ function checkMacPythonVersion(){
function checkMacAVX(){ function checkMacAVX(){
if [[ $AVX != "" ]];then if [[ $AVX != "" ]];then
AVX=avx AVX="avx"
else else
echo "您的Mac不支持AVX指令集,目前不能安装PaddlePaddle" echo "您的Mac不支持AVX指令集,目前不能安装PaddlePaddle"
fi fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册