检查系统安装版本
1 2 3
| [root@xsource bin] /user/bin [root@xsource bin]
|
安装编译时依赖库
1 2 3 4 5
| [root@xsource /] [root@xsource /] [root@xsource /] [root@xsource /] opensll version
|
下载版本
1 2 3 4
| [root@xsource /] [root@xsource /] [root@xsource /] [root@xsource /]
|
配置软链接
1 2 3 4
| [root@xsource bin] [root@xsource bin] [root@xsource bin] [root@xsource bin]
|
需要覆盖 pip (不是软连接)
1 2 3 4 5 6 7
| [root@xsource bin]#which pip /usr/local/bin/pip [root@xsource bin]# ls -al -rwxr-xr-x 1 root root 230 Jan 3 09:55 pip -rwxr-xr-x 1 root root 227 Dec 22 14:12 pip3 -rwxr-xr-x 1 root root 230 Jan 3 08:46 pip3.11 -rwxr-xr-x 1 root root 227 Dec 22 14:12 pip3.6
|
创建虚拟环境
地址: https://docs.python.org/3/tutorial/venv.html
运行
1 2 3 4 5
| [root@xsource /]
[root@xsource /]
|
停止运行