1. 国内源
- # 清华的源
- pip install -i https://pypi.tuna.tsinghua.edu.cn/simple some-package
- # 阿里
- pip install -i https://mirrors.aliyun.com/pypi/simple some-package
- # 科大的
- pip install -i https://pypi.mirrors.ustc.edu.cn/simple/ xxx
-
- pip search -i http://xxx name
python -m venv xxx # 经测试,会在当前路径下穿件文件夹
sudo apt install python3.7
ls -l /usr/bin | grep python
sudo rm /usr/bin/python
sudo rm /usr/bin/python3
sudo ln -s /usr/bin/python3.7 /usr/bin/python3
sudo ln -s /usr/bin/python3 /usr/bin/python
sudo vi /etc/profile
PATH=/usr/bin/python:$PATH
重启
遇到‘apt_pkg’问题
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
python -m pip install --upgrade pip setuptools wheel