Change Python Version

By  on  

Python plays a major role at Mozilla; much of our website backends and tooling are written in the powerful language.  Want to build Firefox?  You'll need to make sure you have the proper Python version, which I recently found out had been upgraded.

Despite installing and verifying I had the version of python I needed, the default version was still an older version and the build was failing.  I know that there are python version managers and symlinking tricks, but I wanted the easiest and most explicit possible way to set a default python version, and I did it with an entry to ~/.bash_profile:

alias python='python3'

The directive above sends python calls to python3 and thus I can specify the python version with this entry.  There are many ways to accomplish this goal but this one works great for me!

Recent Features

  • By
    9 Mind-Blowing Canvas Demos

    The <canvas> element has been a revelation for the visual experts among our ranks.  Canvas provides the means for incredible and efficient animations with the added bonus of no Flash; these developers can flash their awesome JavaScript skills instead.  Here are nine unbelievable canvas demos that...

  • By
    Being a Dev Dad

    I get asked loads of questions every day but I'm always surprised that they're rarely questions about code or even tech -- many of the questions I get are more about non-dev stuff like what my office is like, what software I use, and oftentimes...

Incredible Demos

Discussion

  1. Woah awesome idea. I will also go for it. Keep sharing such ideas to bring some awareness in users. Thank you

Wrap your code in <pre class="{language}"></pre> tags, link to a GitHub gist, JSFiddle fiddle, or CodePen pen to embed!