Week 5 Zoom Session Summary Of March 7 LANA Session 1

LANA
Python Installation and Version Management

Python Installation and Version Management

Session Summary: Technical Setup Fundamentals

Instructor: Aalekh Rai
Date: 7th March 2025
Time: 5:00 PM – 7:00 PM
Format: Installation Guide + Q&A

Session Overview

This hands-on session provided a comprehensive guide to installing Python on different operating systems and managing multiple Python versions. The focus was on guiding students through the installation process step-by-step, addressing common installation issues, and explaining best practices for setting up a Python development environment. The session included an interactive Q&A portion where students could ask questions about their specific installation challenges.

Key Topics Covered

1

Overview of Python Installation

The session began with a broad overview of Python versions and installation considerations:

  • Introduction to Python and its different versions (latest vs. older versions)
  • Explanation of why the correct version matters for project compatibility
  • Discussion of 32-bit vs. 64-bit Python and how to choose based on system requirements
  • Common installation mistakes and how to avoid them

The instructor emphasized that choosing the correct Python version is crucial for ensuring compatibility with libraries and frameworks used in various projects.

2

Python Installation on Windows

A detailed walkthrough of the Windows installation process was provided:

  • Downloading Python from the official website (python.org)
  • Understanding installer options:
    • Add Python to PATH (recommended)
    • Install pip, IDLE, and documentation
    • Customize installation location
  • Running the installer with proper permissions
  • Verifying installation via command prompt
# Command to check Python version in Command Prompt python –version # Alternative command (Python Launcher) py –version # Checking if Python is 32-bit or 64-bit python -c “import platform; print(platform.architecture()[0])”

The instructor demonstrated each step in real-time and addressed common Windows-specific installation issues.

3

Python Installation on Mac

The macOS installation process was covered in detail:

  • Checking if Python is already pre-installed (most macOS systems come with Python 2.7)
  • Options for installing Python 3:
    • Download from python.org
    • Using Homebrew package manager
  • Terminal commands for verification
# Installing Python with Homebrew brew install python # Checking Python version python3 –version # For older installations python –version # Determining bit architecture python3 -c “import platform; print(platform.architecture()[0])”

The instructor highlighted macOS-specific quirks, such as the distinction between the pre-installed Python 2 and newly installed Python 3 versions.

4

Managing Multiple Python Versions

The session explored advanced techniques for managing multiple Python versions:

  • For Windows: Using Python Launcher (py command) with version flags
  • For macOS/Linux: Using pyenv for version management
  • Cross-platform solution: Creating virtual environments with venv
# Windows: Running specific Python version with Python Launcher py -3.11 script.py # Run with Python 3.11 py -3.10 script.py # Run with Python 3.10 # macOS/Linux: Using pyenv pyenv install 3.11.5 # Install specific version pyenv global 3.11.5 # Set as default # Creating virtual environments (all platforms) # Python 3.11 python3.11 -m venv myenv_311 # Activating virtual environment # Windows myenv_311\Scripts\activate # macOS/Linux source myenv_311/bin/activate

This section emphasized the importance of isolation between projects with different dependencies and Python version requirements.

5

Common Installation Issues

The instructor addressed frequent installation problems and their solutions:

Issue Cause Solution
“Python is not recognized” PATH environment variable not set Add Python installation directory to PATH
Permission errors Insufficient user rights Run installer as administrator/use sudo
Multiple versions conflict Python commands pointing to wrong version Use version-specific commands (python3.11)
pip not available Not installed with Python Install pip separately or reinstall Python with pip option

Troubleshooting tips were provided for each issue, with emphasis on checking environment variables and installation logs.

6

LMS Interface Discussion

The instructor discussed the current Learning Management System and potential improvements:

  • Current limitations:
    • Complex navigation structure
    • Limited search capabilities
    • Inconsistent mobile experience
  • Planned improvements:
    • Simplified user interface
    • Enhanced search functionality
    • Better integration of interactive tools
    • Improved mobile compatibility
    • Dark mode and customization options

Students were encouraged to send feedback to bscdelivery@futurense.cm with suggestions for improving the learning platform.

7

Q&A Session Highlights

Key questions addressed during the interactive portion:

  • Q: Should I uninstall older Python versions when installing a new one?
    A: Not necessarily. Multiple versions can coexist if properly managed with virtual environments or version managers.
  • Q: How do I determine which Python version to use for my project?
    A: Check the project documentation or requirements.txt file. When in doubt, newer versions (3.8+) are generally recommended for new projects.
  • Q: Can I use Python installed through Anaconda for non-data science projects?
    A: Yes, but be aware that Anaconda includes many packages you might not need, which can lead to environment bloat.
  • Q: How often should I update my Python installation?
    A: For production systems, only update when necessary for security or feature needs. For learning environments, staying current with the latest stable release is beneficial.

The session concluded with information about upcoming Python-focused workshops and resources.

Key Takeaways

  • Python installation varies by operating system, but the principles of version management are consistent across platforms.
  • Adding Python to PATH during installation is crucial for command-line accessibility.
  • Virtual environments provide the safest way to manage project-specific dependencies without conflicts.
  • 32-bit vs. 64-bit Python selection depends on system architecture and memory requirements.
  • Package managers like pip (Python) and Homebrew (macOS) simplify the installation process for additional libraries.
  • Python 2 and Python 3 are not fully compatible; most new development should use Python 3.
  • Checking installation success via command line (python –version) is an essential verification step.

© 2025 Python Installation and Version Management | Lana AI Tool Session

About the Author

Leave a Reply

Your email address will not be published. Required fields are marked *

You may also like these