Installation of Python: Anaconda or Miniconda, download and install from the official website; the download address is Downloads - Anaconda https://www.anaconda.com/download/
Note: During the installation process, check to add Anaconda to the environment variables. If you forget, manually add three environment variables: Anaconda2_root; Anaconda2_root\Scripts; Anaconda2_root\Library\bin (the root directory needs to be changed according to the path where you installed Python). The method is Computer-Properties-Advanced System Settings-Environment Variables. Add the above three variables under PATH in the system environment variables column. Note that they are separated by semicolons. For win10 system, just create a new one and add one variable per line; after adding it, verify whether the installation is successful by entering python in cmd; if no error is reported, the installation is successful.
Change the path as follows
Here you can customize the path to select the installation
Related learning recommendations: python tutorial
The above is the detailed content of How to change the installation path of python. For more information, please follow other related articles on the PHP Chinese website!