Python is an easy-to-learn, introductory programming language.
https://webinstall.dev/pyenv| Installer Source| Releases (json) (tab)
Python is an easy-to-learn, introductory programming language.
https://webinstall.dev/pyenv| Installer Source| Releases (json) (tab)
To update or switch versions, run pyenv install -v 3
(or 3.10
, etc).
These are the files / directories that are created and/or modified with this install:
~/.config/envman/PATH.env
~/.pyenv/bin/
~/.pyenv/shims/
# pyenv also loads shell hooks via
~/.bashrc
~/.config/fish/config.fish
~/.zshrc
Install Xcode tools first:
xcode-select --install
Make sure that you already have the necessary build tools installed:
# required
sudo apt update
sudo apt install -y build-essential zlib1g-dev libssl-dev
# recommended
sudo apt install -y libreadline-dev libsqlite3-dev \
libffi-dev libbz2-dev liblzma-dev
Python is a introductory programming language that focuses on Software Engineering principles - as laid out in The Zen of Python (above).
Note: pyenv
(used here) is the only way you should ever install Python,
otherwise you risk messing up your system version of python, and existing python
projects.
pyenv
installs a conflict-free version of python that will not interfere with
system utilities (which is why we love it so much).
However, in the rare event that you need to switch your user profile's python back to the system version, you can do so:
pyenv global system
Go into the root of your project repository and run this, for example:
pyenv local -v 3.10.0
Change 3.10.0 to the version you want for that project, of course. 😁
Learn Python 3 The Hard Way is probably the best beginner resource.
Python's a great language for learning to program and it still has a lot of practical uses, but it's a product of its time and not as well-suited for modern web development as more modern languages that were designed to handle the types of problems that exist for programmers in today's world.
What are the best alternatives?
That all said, it's probably still worth it to learn Python first - it has much better learning resources than Node, and the learning resources for Go and Rust typically assume you've had experience with one of the languages they replace... such as Python.
Once you learn how to program, you can easily apply that to any language.
90%+ of programming is programming. Maybe 10% is the language you choose.