解决依赖,scope安装
打开要给cmd
powershell
打开远程
Set-ExecutionPolicy RemoteSigned -scope CurrentUser;
我试了好多装这东西还是得科学上网,不然不好用
iwr -useb get.scoop.sh | iex
查看下载过的软件
安装sudo
安装git
这里一定要配置bucket
scoop添加代理
scoop config proxy 127.0.0.1:1080
这个怎么用懂得都懂
centos7安装java1.8
yum install java-1.8.0-openjdk* -y
python3安装
yum -y install wget gcc libffi-deve
wget https://www.python.org/ftp/python/3.7.7/Python-3.7.7.tgz
tar zxvf Python-3.7.7.tgz
./configure --prefix=/usr/local/python3
make && make install
环境变量加个软链接
ln /usr/local/python3/bin/python3.7 /usr/bin/python3
vim /etc/profile
加上
PATH=$PATH:/usr/local/python3/bin
vim /etc/profile.d/python.sh
alies python='/usr/local/python3/bin/python3.7'
添加一下
source /etc/profile.d/python.sh
我们现在用python默认就是3.7了
安装pip
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py -i
Simple Index
此过程会出现两个错误
错误1 :zipimport.ZipImportError: can’t decompress data
解决:yum -y install zlib*
重新安装一下python3
./configure --prefix=/usr/local/python3
make && make install
python get-pip.py -i Simple Index
环境变量
cat /etc/profile.d/python.sh > /etc/profile.d/pip.sh
vim /etc/profile.d/pip.sh
alias pip='/usr/local/python3/bin/pip3.7'
source /etc/profile.d/pip.sh