Skip to content
Advertisement

(Easiest) Way to use Python 3.6 and 3.7 on same computer?

I have Python 3.7 installed on my computer. I want to use tensorflow and just found out that it basically doesn’t support 3.7, so I’d like to (also) install Python 3.6.

Any suggestions of how to do that? Do I have to uninstall 3.7 and replace it by 3.6 or is there a way to just use 3.6 for the stuff related to tensorflow?

Advertisement

Answer

One of the recommended ways to have multiple python installations with differing libraries installed is to use Virtualenv. This gives you the possibility to have a specific python environment with it’s own set of dependencies for each project you work on. This works not only for the dependencies, but also for different versions of python.

On top of that you can use Pipenv to manage the different virtualenvs. In a Pipfile you can describe your required python and it’s dependencies which is used by Pipenv to manage a python env specific for your project.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement