Set Up Python 3.10 Environment

Use when you need to switch from an incompatible Python version to Python 3.10 before project setup. This ensures the correct runtime environment for dependency installation and test execution.

cxcscmu Updated

File contents

  1. Install Python 3.10 using uv:

    uv python install 3.10
    
  2. Verify installation:

    uv python list
    
  3. Create a virtual environment with Python 3.10:

    uv venv /root/.venv310 --python 3.10
    
  4. Activate the Python 3.10 environment:

    source /root/.venv310/bin/activate
    
  5. Verify the active Python version:

    python --version
    python -VV
    
  6. Document the environment info:

    python -VV > /root/python_info.txt
    python -m pip freeze >> /root/python_info.txt
    

All subsequent commands must be executed within the activated Python 3.10 environment.

cxcscmu/SkillLearnBench commit 8e174743f0

Frequently asked questions

npx get-skill add cxcscmu/set-up-python-3-10-environment