Deep learning Framework builds new Python and latest version NumPy installation

Source: Internet
Author: User

These two days have taken a lot of effort to carry a deep learning Python architecture, but Theano has limitations on Python and nunpy versions, so you can only use newer versions of Python and nunpy to make sure it's not obsolete. But the most recent version of Python and the latest edition of NumPy is a bit imperfect, a lot of installation steps to be completed in the command line, so it took me a lot of time, in order to sacrifice my installation NumPy lost youth, close-up this log, to ensure that the future of youth is no longer gone.
Let's talk about Python installation, I'm a 64-bit Windows system. So the choice is the https://www.python.org/downloads/release/python-352/website

After downloading, EXE file can be installed directly. Unfortunately, this thing is not able to configure the environment variable itself, if we want Python to be a cmd external command, we should manually put the Python installation address into the environment variables:

After setting the environment variable, you need to install another thing called Pip,pip in a folder called scripts in Python's own directory, open this folder and copy the path to cmd, and enter python-m pip install-u pip

If the system prompts "Python is not an internal or external command, it is not ..." That means that your environment variable is not configured successfully, and if the environment variable is configured to enter Python directly in CMD, the version information of Python will be prompted. If the python-m pip install-u pip command succeeds, you will be told to install successful. And will pull a long list of progress bars (this is not necessarily, mine is so, other people I see there seems to be not so). Unfortunately,pip this thing can not be automatically configured environment variables, so after the PIP installation is completed also to put the path (always included in the scripts) in the environment variable path inside,

Then is the installation of NumPy, the previous work is to install NumPy, first talk about NumPy, here are four:
1st https://pypi.python.org/pypi/numpy/
2nd http://www.numpy.org/
3rd http://sourceforge.net/projects/numpy/files/
4th http://www.lfd.uci.edu/~gohlke/pythonlibs/
Unfortunately, it is estimated that I daoxing not enough, except the last one I did not Ann success, open the last site after the found as shown (push down the mouse)

Here, NumPy and Python are related, not just a numpy can be based on a random python, so here to choose AMD64 and corresponding cp35 (red box file, Because we installed the Python is python3.5, if is python2.7 in the blue box file).
Then find the folder with the NUMPY-1.11.1+MKL-CP35-CP35M-WIN_AMD64.WHL
After that, change the CMD directory to this folder, and then enter PIP install NUMPY-1.11.1+MKL-CP35-CP35M-WIN_AMD64.WHL as shown below.

If the installation succeeds, the contents of the red box will be displayed. And then open the Python test.

As you can see, Python after the introduction of NumPy can perform matrix operations.
Here, the latest version of Python and the latest version of NUNPY have been installed, followed by Python-based deep learning work.

Deep learning Framework builds new Python and latest version NumPy installation

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.