What About a Package Manager?
Now that you’ve decided not to use system Python, the next logical place to look is package managers. Programs such as
port are typical next options. After all, this is how you install most packages to your system.
00:26 By default, package managers tend to install their packages into the global system space instead of the user space. Again, these system-level packages pollute your development environment and make it hard to share a workspace with others.
00:45 Once again, you still don’t have control over what version of Python you can install. It’s true, some repositories give you a greater selection, but by default, you’re looking at whatever version of Python your particular vendor is up to on any given day.
01:47 With these constraints in minds, let’s recap the criteria that would let you install and manage Python versions easily and flexibly. First, install Python in your user space so you have full control and you will have no interference with other users. Second, install multiple versions of Python, which will allow you to test your project with multiple Python versions or work on multiple projects with different Python versions in your user space. Thirdly, specify the exact Python version you want for each specific project. And lastly, switch between the installed versions so you can try stuff out on multiple versions, run tests with multiple versions on a single project, or easily upgrade the Python version for a project.
Become a Member to join the conversation.