- 工信部备案号 滇ICP备05000110号-1
- 滇公网安备53011102001527号
- 增值电信业务经营许可证 B1.B2-20181647、滇B1.B2-20190004
- 云南互联网协会理事单位
- 安全联盟认证网站身份V标记
- 域名注册服务机构许可:滇D3-20230001
- 代理域名注册服务机构:新网数码
- CN域名投诉举报处理平台:电话:010-58813000、邮箱:service@cnnic.cn
1 | $ curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash |
1 2 3 4 5 6 | # Load pyenv automatically by adding# the following to ~/.bash_profile:export PATH="/home/lavenliu/.pyenv/bin:$PATH"eval "$(pyenv init -)"eval "$(pyenv virtualenv-init -)" |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | [lavenliu@VM_113_230_centos ~]$ . ~/.bash_profile [lavenliu@VM_113_230_centos ~]$ pyenv pyenv 20160726Usage: pyenv <command> [Some useful pyenv commands are: commands List all available pyenv commands local Set or show the local application-specific Python version global Set or show the global Python version shell Set or show the shell-specific Python version install Install a Python version using python-build uninstall Uninstall a specific Python version rehash Rehash pyenv shims (run this after installing executables) version Show the current Python version and its origin versions List all Python versions available to pyenv which Display the full path to an executable whence List all Python versions that contain the given executableSee `pyenv help <command>' for information on a specific command.For full documentation, see: https://github.com/yyuu/pyenv#readme |
1 | pyenv install 3.5.2 |
1 2 3 4 5 6 7 8 9 | cat ~/.pyenv/plugins/python-build/share/python-build/3.5.2#require_gccinstall_package "openssl-1.0.2g" "/source/openssl-1.0.2g.tar.gz#b784b1b3907ce39abf4098702dade6365522a253ad1552e267a9a0e89594aa33" mac_openssl --if has_broken_mac_opensslinstall_package "readline-6.3" "http://www.landui.com/readline/readline-6.3.tar.gz#56ba6071b9462f980c5a72ab0023893b65ba6debb4eeb475d7a563dc65cafd43" standard --if has_broken_mac_readlineif has_tar_xz_support; then install_package "Python-3.5.2" "~/.pyenv/cache/Python-3.5.2.tar.gz" ldflags_dirs standard verify_py35 ensurepipelse install_package "Python-3.5.2" "~/.pyenv/cache/Python-3.5.2.tar.gz" ldflags_dirs standard verify_py35 ensurepipfi |
1 | $ mkdir ~/.pyenv/cache |
1 | # yum install -y gcc make patch gdbm-devel openssl-devel sqlite-devel zlib-devel bzip2-devel readline-devel |
1 | $ pyenv install 3.5.2 |
1 2 | pyenv version3.5.2 (set by /home/lavenliu/.python-version) |
售前咨询
售后咨询
备案咨询
二维码

TOP