How to set the python specified version as the default python environment in the pagoda panel

Preface: To set a python version as the default environment on the pagoda panel, of course you need to install the python manager first

1. Specify the required python version as our default system environment

(1) To view the current python environment, use the following commands:

python -V

(2) We used the python manager of the pagoda to install other py versions, we can use the following command to view:

pyenv versions

(3) Here we specify py3.7 as the default system environment. Here use the pyenv shell command to specify the system python environment

pyenv shell 3.7.0

(4) Check the effect after the command is executed.

(5) Use --unset to cancel the specified version.

 pyenv shell --unset

Two, recommended

If you need it, you can use my referral code

Pagoda server panel, one-click all-round deployment and management, give you a gift package of 3188 yuan, click me to receive https://www.bt.cn/?invite_code=MV96bmt3cnM=

Guess you like

Origin blog.csdn.net/qq_27295403/article/details/121475229