Download and install the Numpy Library (vomit blood summary), numpy vomit blood

Source: Internet
Author: User

Download and install the Numpy Library (vomit blood summary), numpy vomit blood

Python is very popular, and I have been playing around for a while. But gradually, I was not satisfied with its basic library, and I turned to Numpy ~~~~~

However, the idea is always easier than the reality, because I used Python3.3.x, And I didn't bring pip !!! (I have to insert a sentence here: Many people think that Python comes with pip, and I used to (hide my face and smile). The impression is that Python 2.7.x and above only come with Python 3.4.x, I just float !!!) So that later, in the pip installation process, I could not stand my computer so messy that I could directly reinstall the entire computer and replace the system with me ...... So I suggest you: if you can, release the latest version.

OK. Enter the topic: download and install Numpy.

  

Preparations

Give you a link: https://pypi.python.org/pypi/numpy#downloads (only to find that the link cannot be directly inserted here, a bit speechless)

Be sure to check your Numpy version !!!!!

Cp36 indicates the corresponding Python version. Pay attention to the following 64, which is your system.

(The first point is mentioned in many tutorials, but the second point is not mentioned ).

After the preparation is complete, you can install Numpy.

Open cmd, enter the directory where the whl installation package is stored, and enter the command line:

Pip install numpy file name. whl

  

   

Congratulations, Numpy has been installed.

  

Then there will be some poor people who will encounter various problems, such as my whining ~~~~

 

First, it is like this:

   

It tells me that my pip version is not the latest, so I believe it's evil and run a series of code. The result is as follows:

   

My day !! Timeout errors are all met for me, but it doesn't matter. It's not a big deal.

During the waiting time, I was bored and looked at the Warm prompt it gave me, and suddenly found that it was still possible! I tried again, as shown below:

   

Perfect ~~~ I finally started the installation and was happy to fly.

But if you think this is successful, it's too young to be careful. It's Just pip installation.

Of course, it's much easier to install Numpy.

After installation, I finally ran the code above:

Pip install numpy file name. whl

   

    Successfully installed !!!!!!!!!!!!

When I saw this sentence, I suddenly felt that the previous sentence was worth it, and everything was comforted.

Of course, because I am different from ordinary people, I dare not take it lightly. So I opened the IDLE carefully and entered:

Import numpy

   

       No exception thrown! No exception thrown !! No exception thrown !!!

My heart can finally be put down.

 

So far, the download and installation of the Numpy Library have been completed. My day, it took me one night, no, and it took me one day to reinstall the system after the first attempt failed.

Fortunately, this is the final point.

I hope you will be lucky enough to see this blog. I hope you can take less detours.

Finally, I think of another sentence: My life is short. I use python.

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.