Python Installation Guide
This guide provides all the key information and getting-started instructions after a successful Python installation via DeploySage-CLI. This installer compiles Python from source to provide a fully-featured, independent environment.
Installation Information
Below are the details for your new Python installation.
| Item | Value |
|---|---|
| Python Version | e.g., 3.12.4 |
| Installation Path | /usr/local/Python-3.12.4 |
| Python Executable | .../bin/python3 |
| Pip Executable | .../bin/pip3 |
| Environment File | /etc/profile.d/python_custom.sh |
Usage Guide
1. Activate Environment
2. Verify Installation
3. Recommended First Steps
4. Using Aliases
To start using the new Python version, you must first source the environment file in your current terminal session, or simply log out and log back in.
After activating the environment, you can verify that the new version is active.
It's good practice to upgrade pip and install some common packages.
The installer also creates version-specific aliases for convenience.
# Activate for the current session
source /etc/profile.d/python_custom.sh
# Check the Python version
python3 --version
# Check the pip version
pip3 --version
# Upgrade pip to the latest version
python3 -m pip install --upgrade pip
# Install some useful packages
pip3 install requests numpy pandas
# Example for Python 3.12.4
python3.12 --version
pip3.12 --version
Important Notes
# Create a virtual environment
python3 -m venv my_project_env
# Activate the environment
source my_project_env/bin/activate