Manage Multiple Python Versions With Pyenv On Linuxįirst, let us see all available versions. Now let us see how to manage different versions of Python using Pyenv. Run the below command to take effect the changes. export PATH="/home/ostechnix/.pyenv/bin:$PATH" In my case, I added the following lines in my ~/.bash_profile file. $ curl -L | bashĪt the end of the installation, the installer will notify you to add Pyenv to your PATH. All you have to do is run the following command in your shell to install pyenv. The official and recommended way to install Pyenv is using the pyenv-installer script. We have just installed the necessary prerequisites. Switching between different Python versionsįirst of all, install the following packages to avoid the common build problems.įor Debian based systems: $ sudo apt-get install -y make build-essential git libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-devįor RPM based systems: $ sudo yum install zlib-devel bzip2 bzip2-devel git readline-devel sqlite sqlite-devel openssl-devel xz xz-develįor SUSE/openSUSE: $ sudo zypper in zlib-devel bzip2 libbz2-devel git readline-devel sqlite3 sqlite3-devel libopenssl-devel xz xz-devel.Manage Multiple Python Versions With Pyenv On Linux.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |