Python installation and numpy installation, python installation numpy

Source: Internet
Author: User

Python installation and numpy installation, python installation numpy

The python language is required for actual machine learning algorithms, So I installed and configured it a few days ago. To be honest, compared with the IDE of other programming languages, python itself is not a problem, but because there is a lot of matrix computing, it is necessary to install the numpy package! However, this process has encountered a big problem on my computer. Therefore, record this process. If a problem occurs on your computer, you can reinstall it !!

Declare Computer Configuration: win7 64-bit

Python installation version: Python 2.7 (or python3.x is not used to the latest version, so python 2.7 is selected)

1. download the corresponding version of numpy. whl file (Note: My computer is indeed 64-bit, and python is also installed in the 64-bit version, but it cannot be installed in the subsequent command line, later)

Http://www.lfd.uci.edu /~ Gohlke/pythonlibs/



2. Copy the downloaded installation package to the scripts directory under the python installation directory. my options are C: \ Python27 \ Scripts. Then, open the command line window and enter the python installation directory.

Enter pip install "numpy-1.11.2 + mkl-cp35-cp35m-win-amd64.whl", but at this time my computer is prompted the problem, and then found through the information should have installed pip first, so still the above Path Directly find

Download to pip's wheel file.


Decompress the downloaded package and copy it to the scripts directory. Then input python setup. py install on the command line to install pip. After installation, enter pip in the command line. Then, the system prompts that pip is not an internal command, so you can add the scripts path to the environment variable.

3. After installing pip, I still had a problem installing numpy, and then found the download of the wheel file in the above path.

Copy the wheel file to the scripts directory and enter pip install wheel in the directory of the command line.


It indicates that the wheel file has been installed.

4. Finally, the installation of our ultimate numpy, at this time in the command line Input pip install "numpy-1.11.3 + mkl-cp27-cp27m-win_amd64.whl" NOTE: This is my numpy name, according to your own file name to write. Note: At this time, the number of digits in my computer is matched. It is reasonable to say that it can be installed, but it prompts that I do not match.

For this reason, I changed several 64-bit versions of serial numbers, but this is the result. After a long time, I took a 32-bit attitude towards being a dead horse, and the result was immediately settled !!! What else can I say! Manual crying ~~~


All in all, in order to install a numpy, I am also a lot of effort, hope that the installation of problematic friends can make a reference!





Top
0
Step on
0
View comments

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.