How To Install Python in Linux Operating System:
4 Fedora:
Sudo dnf install python3 for Fedora
4 Arch Linux:
Use sudo pacman -S python for Arch Linux.
2. Confirm the installation:
* To verify the installed version, type 'python3 --version' into the terminal and hit Enter.
Configuring a Virtual Environment (as suggested but Optional)
It's a good idea to set up a virtual environment for your projects after installing Python:
1. Use Python 3 -m venv myenv to create a virtual environment.
Change myenv to the name of the environment you want.
2. Turn on the virtual world:
* To activate on Windows,
go to myenv\Scripts\activate
2. For macOS/Linux
* Source myenv/bin/activate for macOS/Linux
3. Set up the packages:
* Packages can now be installed with pip without affecting your Python installation globally:
Install package_name using pip
In conclusion
After completing these procedures, your system will have Python installed and functional.
0 Comments