需要 手動改linux python版本
寫python3 腳本指令 執行安全
linux下安裝anaconda3 5.3.1
用豆瓣源 下載下傳pyspark
改python3 anaconda3 3.5.1源
cd /opt
sh Anaconda3-5.3.1-Linux-x86_64.sh
全程回車 和yes
centos中安裝anaconda_bug的部落格-CSDN部落格
vim /etc/profile
#anaconda environment
export ANACONDA_HOME=/root/anaconda3
export PATH=$PATH:$ANACONDA_HOME/bin
bin 裡有python3
centos pip 換源
centos 修改pip的配置源的方法_wushiqi11的部落格-CSDN部落格_centos pip換源
vim pip.conf
[global]
index-url = http://pypi.douban.com/simple
[install]
trusted-host=pypi.douban.com
然後儲存
pip install pyspark==3.0.0
下載下傳完