Python3 environment installation (two ways)

Python environment installed

Foreword

  There are two ways to install the Python environment I personally know of:

    1. Direct install Python

    2. Use Anaconda environmental configuration

  People still prefer the second way, after all, can create different versions of Python in Anaconda, can be switched environment of freedom.

surroundings

  Win10

A direct installation Python3

  1.Python official website http://www.python.org/download/ direct download.

         "Files" in the countdown to select the fifth "Windows x86-64 executable installer" download.

  2. Install, click to download the file, double-click the .exe installation.

   Check both options, you do not have to manually set environment variables.

 

           Fool installation on it.

   If unchecked add an environment variable, then added manually.

    a. Right-click on My Computer properties, find the Advanced System Settings, bottom right corner there is an environment variable, double-click.

    b. Locate the user variable Path inside the top two lines can add (add command can be used only in the current user in the user variables inside the top of the system variables below the Add command can be used in all users), for example, .

     

       The first line is the location of the installation package Python Scripts files.

          The second line is a position where the installation package Python.

     After completion of configuration commands every step Click OK to save in order to ensure success.

  3. Python detecting whether the installation is complete.

   Open a DOS command, type python -V Python version can be displayed.

  4.python -m pip install -U pip setuptools setuptools and pip updates used to update package.

Second, the use Anaconda to configure the Python environment.

  1.Anaconda refers to is an open source Python release, which contains conda, Python and more than 180 scientific packages and their dependencies.

  2. Go to the official website Anaconda https://www.anaconda.com/distribution/ to download.

  3. Select your computer operating median wait for the download.

  4. Locate the directory where the installation package, double-click the installation package.

  5. Select the Add PATH that option during installation, then you do not need additional configuration environment variable, but if you have not checked (default is not checked).

 

     We need to add two commands to configure it manually.

   

   The first line is the Anaconda installation location Scripts package file.

   The second line is a position where the Anaconda installation package.

  6. Check Anaconda installation is complete.

   Recently added Anaconda found inside the Spyder, will open one of the following interface.

   

 

Guess you like

Origin www.cnblogs.com/Sssun/p/11721363.html