Python安装
ubuntu
RUN apt update \ && apt install python3.7 python3.7-dev python3-distutils libgl1-mesa-glx libglib2.0-dev curl -y \ && ln -s /usr/bin/python3.7 /usr/bin/python \ && curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \ && python get-pip.py
https://blog.csdn.net/qq_42353939/article/details/94609591
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel libffi-devel gcc make
下载地址:https://www.python.org/ftp/python/
wget https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz tar -xzvf Python-3.7.1.tgz
vi /etc/pip.conf
[global] index-url = https://pypi.doubanio.com/simple [install] trusted-host = pypi.douban.com
指定版本创建虚拟环境
virtualenv -p python3.6 env36 virtualenv -p python3.7 env37
which python3.9 命令是否可以找到 Python 3.9 的路径
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh
sh Miniconda3-latest-Linux-x86_64.sh