Many people said, "I want to study machine learning and artificial intelligence, but I'm stumbling on the environment construction before learning programming **", and I wrote an article ** to never fail in the environment construction. It was decided to do.
Currently, "** Machine Learning / Artificial Intelligence" De-Black Box "Seminar **" is being held in Tokyo, and its students We ask all of you to build a Python environment on your PC in advance. However, there were large individual differences depending on the PC, and some people failed to install. Therefore, I searched for a method that anyone could set up well, came to the conclusion of the installation method of this article, and now there are almost no people who stumble on the installation even at the seminar of about 30 people, and everyone can concentrate on the seminar. .. Therefore, I think that this article is probably the most stable installation article at the moment (2017.03.18) on Windows PC (recommended is Windows 10).
There is more than one way to build a Python machine learning environment on Windows, and you can try installing it in various ways. It's nice to have multiple methods because even if you make a mistake, you can try other methods, but ** it can be a cause for beginners to wonder which method to build the environment **.
Therefore, in this article, we are targeting the following people.
Please refer to this article to build an environment that will not fail.
If you find this article helpful, I would be grateful if you could like this article.
I am ** Kikagaku Co., Ltd. ** Representative Director ** Ryosuke Yoshizaki ** My name is. Currently, "** Machine Learning / Artificial Intelligence De-Black Box Seminar **" and "** Machine Learning Online Tutor ** ”is operated.
Affiliation | Department / Department | research content | Punishment |
---|---|---|---|
Maizuru National College of Technology | Department of Electronic Control Engineering | Study image processing (AR) | |
Maizuru National College of Technology | Department of Electrical and Control Systems Engineering | Research on robotics, system control, and optimization | |
Kyoto University Graduate School | Graduate School of Informatics (Kano Lab) | Appliedresearchonmachinelearningforthemanufacturingindustry | ADCHEM2016BestPaperAward,ChemicalEngineeringSocietyTechnologyAward |
SHIFT Inc. | President's office | Research on software test automation by artificial intelligence | CEDEC 2016 stage |
Carat Co., Ltd. | Director and COO | Optimal itinerary proposal app (natural language processing / optimization) | |
Kikagaku Co., Ltd. | PresidentandCEO | Machinelearning/artificialintelligenceseminarOrOnlinetutor |
Providing educational services for machine learning and artificial intelligence
We provide information on machine learning and artificial intelligence from a business perspective and recommended reference books.
President and CEO Ryosuke Yoshizaki Twitter:@yoshizaki_kkgk Facebook:@ryosuke.yoshizaki Blog: Blog of Kikagaku representative
Now that the introduction is long, let's start building the environment!
First, go to the ** here ** page, download the ** Anaconda ** distribution file, and install it.
Anaconda will do everything from building a Python environment to installing some necessary libraries at once.
It will take some time to download.
After downloading, double-click the downloaded file to execute the installation.
Basically it is OK, but if you want to specify the location of the download file somewhere, change this location to your favorite location.
Leave the checks for "Add PATH (top)" and "Set Python installed with Anaconda as default (bottom)" to install.
Installation will be completed in a few minutes.
Of course, you can also download the installation file from the official Python page and install it.
However, with this method, when installing the library required to install the machine learning library scikit-learn
called numpy
or scipy
depending on the PC," there is no BLAS or ATLAS "" C I often encountered difficult-to-handle errors such as "no compiler".
It is very difficult to solve this, and ** Anaconda ** builds this environment in one shot, so no one has failed in building the environment.
Open "Windows PowerShell" (* you can also use a command prompt) that comes standard with Windows.
Enter the following command on this screen, and if it works correctly as shown below, the installation is complete.
Operation check
$ python
>>> import numpy #Library for linear algebra
>>> import scipy #Computer algebra library
>>> import matplotlib #Visualization library
>>> import pandas #Data processing library
>>> import sklearn #Library for machine learning
>>> exit() #Exit Python interactive mode
If there are no particular errors here, the installation is complete.
Open "Windows PowerShell" (* you can also use a command prompt) that comes standard with Windows.
Enter the following command on this screen to install "** Chainer **", a Python library for deep learning.
Install chainer
$ pip install chainer
pip
is a very useful tool for managing Python libraries such as installing and uninstalling them.
It's used a lot, so it's a good idea to remember how to use it.
Make sure you have chainer
installed using the same steps as before.
Operation check of chainer
$ python
>>> import chainer #Loading a library for deep learning
>>> exit() #End of interactive mode
Installation is complete if there are no particular errors as described above.
Thank you for building the environment on Windows. Were you able to build the environment smoothly?
I used Anaconda to install it in a very neat state, so when I needed another library in the future, I didn't see pip
or this time, but if I use the conda
command, Rest assured that the additional libraries will generally install successfully.
We are very much looking forward to learning machine learning and revolutionizing various industries, and we hope that this article has helped you. If you found this article useful, we would appreciate it if you could like the article.
We provide information on machine learning and artificial intelligence from a business perspective and recommended reference books.
President and CEO Ryosuke Yoshizaki Twitter:@yoshizaki_kkgk Facebook:@ryosuke.yoshizaki Blog: Blog of Kikagaku representative
Until the end Thank you for reading.