Python tutorials


Python wiki

Python 3.10.6 : "Python 3.10.6 is a stable and reliable version of the Python programming language. It includes improvements in performance, new features like structural pattern matching (making code cleaner for certain tasks), and bug fixes. It's a good choice because it's not the very newest version (which might have undiscovered issues), but it's still modern and well-supported. Many projects and libraries work well with 3.10.6, making it a practical option for development."


pip : "Pip is a package installer for Python. Think of it like an app store for Python code. When you want to use a library or tool created by someone else (like a library for working with dates, or for making websites), you use pip to download and install it easily.


Install a specific package:

pip install requests (This installs the 'requests' library, commonly used for making web requests.)


Install a specific version of a package:

pip install requests==2.26.0

(This installs version 2.26.0 of the 'requests' library.)


Install from a requirements file:

pip install -r requirements.txt 

(This installs all the packages listed in a file named 'requirements.txt'. This is useful for projects with many dependencies.)


Upgrade a package:

pip install --upgrade requests 

(This upgrades the 'requests' library to the latest version.)


Pygame Tutorial: Getting Started



Comments