SoFunction
Updated on 2025-04-26

Summary of four ways to downgrade Python from 3.10 to 3.8 on win10 system

Method 1: Use Anaconda to manage the environment

  • Create a new virtual environment

    • Open Anaconda Prompt and enter the following command to create an environment with the specified Python version:

      conda create -n py38 python=3.8
    • After running, y/n appears, select y

    • Activate the environment:

      conda activate py38
    • Verified version:

      python --version
      Appear3.Success。
  • Modify the Python version of the existing environment

    • Direct downgrade in existing environments (maybe incompatible, use with caution):

      conda install python=3.8
    • If the installation fails, it is recommended to use the new environment instead of downgrading directly.

Method 2: Manually install Python 3.8 and configure environment variables

  • Uninstall Python 3.10 (optional)

    • Uninstall Python 3.10 through Control Panel, but keep other dependencies (skip this step if you need to keep packages).

  • Install Python 3.8

    • fromPython official websiteDownload the Python 3.8 installation package.

    • Check it during installationAdd Python 3.8 to PATH, ensure that environment variables are automatically configured.

  • Verify installation

    • Open a command prompt and enter:

      python --version
    • If it is displayed as 3., the installation is successful.

Method 3: Use pyenv-win to manage multiple versions

  • Install pyenv-win

    pip install pyenv-win -i /simple
  • Configure environment variables

    Will%USERPROFILE%\.pyenv\pyenv-win\binand%USERPROFILE%\.pyenv\pyenv-win\shimsAdd to system variablesPATHmiddle.
  • Install and switch Python 3.8

    pyenv install 3.8.10
    pyenv global 3.8.10

Method 4: Use the virtual environment isolation version

  • Create a virtual environment through venv

    python -m venv py38_env
  • Activate the environment and install dependencies

    • Activate the environment:

      .\py38_env\Scripts\activate
    • Install the required packages:

      pip install package_name

Things to note

  • Dependency compatibility

    Downgrading Python may cause some libraries to be incompatible (such as TensorFlow requires Python ≤3.8, but some libraries may only support higher versions).
  • Path priority

    If there are multiple Python versions in the system, you need to ensure environment variablesPATHThe path priority of Python 3.8 is higher than 3.10.
  • Backup data

    It is recommended to back up important projects before operation, or isolate different version requirements through a virtual environment.

Summarize

  • Recommended to use Anaconda or virtual environment, avoid global version conflicts.

  • Manual installation or pyenvSuitable for users who need a fixed global version.

  • If you need to further adjust the dependencies, please refer toPython 3.8 official documentationOr related community tutorials.

This is the article about four ways to downgrade Python from 3.10 to 3.8 on win10 system. For more information about downgrading Python from 3.10 to 3.8 on win10, please search for my previous articles or continue browsing the related articles below. I hope everyone will support me in the future!