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
Table of contents 1. Backup 1.1 Fully prepared 1....
This article shares the specific code of Vue usin...
join() method: connects all elements in an array ...
What is nGrinder? nGrinder is a platform for stre...
This article mainly introduces the implementation...
Table of contents 1. Open source warehouse manage...
Install postcss-pxtorem first: npm install postcs...
environment: 1. CentOS6.5 X64 2.mysql-5.6.34-linu...
Common Convention Tags Self-closing tags, no need...
Folding display multi-line text component Fold an...
This article uses examples to describe the manage...
Conventional solution Use FileReader to read the ...
Practice is the only way to test the truth. This ...
Recently, I encountered a database with the follo...
1. Requirements: Database backup is particularly ...