赞
踩
系统:CentOS 7.9
平台:aarch64
CPU:FT2000+
asdf-vm安装gcc、openssl-devel、sqlite-devel、bzip2-devel、readline-develsudo yum install gcc openssl-devel bzip2-devel readline-devel sqlite-devel
asdf-vm安装PythonPython插件asdf plugin-add python
python源代码下载地址使用国内镜像地址~/.asdf/plugins/python/pyenv/plugins/python-build/share/python-build/3.6.12,将文件中的https://www.python.org/ftp/改成https://mirrors.huaweicloud.com/asdf list all python
vim ~/.asdf/plugins/python/pyenv/plugins/python-build/share/python-build/3.6.12
Python 3.6.12asdf install python 3.6.12
Python版本asdf global python 3.6.12
Python 3.6.12asdf uninstall python 3.6.12
Python插件asdf plugin remove python
在项目目录下创建.tool-versions文件,在文件中添加以下内容
python3 3.6.12
然后在项目目录下执行以下命令查看效果
python3 -V
输出如下信息
Python 3.6.12
asdf-plugins中的插件皆可参照此方法安装。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。