I have always had this problem modifying using a particular version of python on gitpod. Until I knew this simple trick to switch between the python versions.
If you have not heard of gitpod its time for you to use it as running code online instead of local machine helps you when you have a CPU intensive processes and there are a lot of free to use online web apps that enable you to start with using powerful CPU and extends to GPU and TPU as well. I will be sharing a blog post soon on all the free tools you could use to boost up your productivity.
So if you are already using gitpod and want to switch between python versions its simpler than you think
Run this to check all the python versions available: pyenv versions
So to install a new version of python you simply have to run this: pyenv install 3.7.6 (Or whatever version you want)
If you have not heard of gitpod its time for you to use it as running code online instead of local machine helps you when you have a CPU intensive processes and there are a lot of free to use online web apps that enable you to start with using powerful CPU and extends to GPU and TPU as well. I will be sharing a blog post soon on all the free tools you could use to boost up your productivity.
So if you are already using gitpod and want to switch between python versions its simpler than you think
Run this to check all the python versions available: pyenv versions
So to install a new version of python you simply have to run this: pyenv install 3.7.6 (Or whatever version you want)
That will basically download and install. Now you need to make sure to configure it for the existing workspace, to do that you simply have to run this: pyenv local 3.7.6 Same version as you downloaded.
Now you are all set yo use that specific version of python. You are free to download any number of versions and you can simply switch between them using the local command.
Feel free to let me know if you have any additional questions in the comments below
For more details check - Gitpod - Documentation
For more details check - Gitpod - Documentation
Also check out : How to get premium productivity tools for free 😯

Comments
Post a Comment