“Proper way” to manage multiple versions of Python on archlinux

前端 未结 7 846
不知归路
不知归路 2020-12-15 18:24

So I have read this - https://wiki.archlinux.org/index.php/Python

And it is clear from this wiki that I can install Python 2.7.2 via

pacman -S pytho         


        
7条回答
  •  有刺的猬
    2020-12-15 18:40

    I just stumbled over this post, no necro-bumping intended but I was wondering nobody mentioned virtualenvs. I'm using ArchLinux as well and I use the python packages virtualenv and virtualenvwrapper to create multiple python environments. You can reference to the python 2 or python3 binaries in /usr/bin/ to determine the python version used in the virtual environment.

    The benefit is that packages installed in a virtual environment don't mess with the python the system is using and there are many ways to automate project handling.

提交回复
热议问题