Prerequisites Need to install git Installation Steps 1. Clone pyenv from the remote repository Clone pyenv using the command below: git clone https://github.com/yyuu/pyenv.git ~/.pyenv 2. Configure environment variables Use the following three commands in sequence to configure the environment variables: echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile echo 'eval "$(pyenv init -)"' >> ~/.bash_profile Or go directly into the file and add at the end: vim ~/.bash_profile #pyenv export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)" 3. Using environment variables Use the source command to re-execute the configuration file modified in the previous step: source ~/.bash_profile At this point, pyenv is installed. You can use the following command to view the installed pyenv version: [root@server1 local]# pyenv -v pyenv 1.2.13-14-gecd67c8 Summarize The above is the method of installing pyenv under Linux introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: Vue3 draggable left and right panel split component implementation
>>: Detailed installation and uninstallation tutorial for MySQL 8.0.12
Preface I watched web.dev's 2020 three-day li...
1. Environmental Preparation Tencent Cloud Server...
Table of contents 1. Introduction II. Monitoring ...
Table of contents Creating OAuth Apps Get the cod...
Problem Description Install nginx on Tencent Clou...
Summary of common functions of PostgreSQL regular...
Table of contents First we need to build the page...
Official website address: https://www.mysql.com/ ...
There is often a scenario where the image needs t...
MySQL version: MySQL Community Edition (GPL) ----...
If an index contains (or covers) the values of ...
This article introduces how to install MySQL 8.0 ...
Web Services are concerned with application-to-ap...
0. Preliminary preparation Disable secure boot in...
Cascading and Cascading Levels HTML elements are ...