Download and install Anaconda
First to https://www.continuum.io/downloads download Anaconda, now the version has python2.7 version and python3.5 version, download the corresponding version, the corresponding system anaconda, It is actually a sh script file, about 280M or so.
This series takes windows7+python3.5 as an example, so we download the version in the Red box:
Name is: Anaconda3-2.4.1-windows-x86_64.exe
is an executable exe file, the download is complete, the direct double-click can be installed.
At the time of installation, suppose we install the D packing directory, such as:
and select all two options to write the installation path to the environment variable.
Then wait for the installation to complete.
When the installation is complete, open a command prompt for Windows:
Input Conda list can query now which libraries are installed, commonly used NumPy, scipy is listed among them. If you still have what package is not installed on, you can run
Conda Install * * * for installation. (* * * for the name of the package required)
If a package version is not up-to-date, you can update it by running Conda update.
Three, simple test
Anaconda comes with an editor Spyder that we can use later to write code.
Spyder.exe placed in the installation directory Scripts inside, as mine is D:/anaconda3/scripts/spyder.exe, directly double-click to run. We can right-click to send to the desktop shortcut, it is more convenient to run later.
We simply write a program to test the success of the installation, which is used to open a picture and display it. First prepare a picture, then open the Spyder, and write the following code:
Fromimport ioimg=io.imread ('d:/dog.jpg') io.imshow (img)
Change the d:/dog.jpg to your picture location
Then click on the green triangle in the toolbar above to run, and finally show
If the "Ipython console" in the lower right corner shows a picture, the installation of our operating environment is successful.
We can select "Variable Explorer" in the upper right corner to view picture information, such as
We can save this program, note that the Python script file has a suffix called py.
Install Anaconda and Python on Windows