Change Python Version

Publikováno: 1.5.2018

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 post Change Python Version appeared first on David Walsh Blog.

Celý článek

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!

The post Change Python Version appeared first on David Walsh Blog.

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace