Install Anaconda and Python on Windows

Source: Internet
Author: User
Tags python script

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.