Friday, October 11, 2024

Setup Python 3.13 via pyenv along with system-wide 3.12.7 on ArchLinux KDE Plasma 6.2

 Pyenv is a tool for managing multiple Python versions. Once pyenv is installed you can easily switch between one project that uses Python 3.13.0 and a system-wide default Python 3.12.7.

$ git clone https://github.com/pyenv/pyenv.git ~/.pyenv

The following two installs are required to perform successful build Python 3.13.0 for particular user via pyenv. This build won't affect system-wide Python 3.12.7

$ sudo pacman -S base-devel

$ sudo pacman -S tk

Now we update ~/.bashrc as follows :

$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc

$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >>  ~/.bashrc

$ echo 'eval "$(pyenv init --path)"' >> ~/.bashrc

$ source  ~/.bashrc

$ pyenv install 3.13.0

Downloading Python-3.13.0.tar.xz...

-> https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tar.xz

Installing Python-3.13.0...

Installed Python-3.13.0 to /home/boris/.pyenv/versions/3.13.0

$ pyenv global 3.13.0

Notice that Pycharm projects running 3D plots requires PyQt6 to be

installed in particular virtual environment of this project












































































































REFERENCES

No comments:

Post a Comment