Install and run Python3.5 + NumPy + SciPy on Windows 10

Introduction

When a beginner who had never touched Python tried to install and run Python + SciPy, I was addicted to various things, so I tried to summarize the process of installing and running it as a memorandum.

1. Install Python

Download the Python 3.5 installer from Python official website . image

I'm using Windows 10 (64bit), so I downloaded the Windows x86-64 executable installer. image

When you execute it, the following window will appear. Check Add Python 3.5 to PATH and click Install Now. image

When the installation is completed, the following screen will appear. Click Close to close the installer. image

Installation confirmation

At the command prompt, type python and press Enter. If Python starts, the Python installation is successful. image

2. Install NumPy + MKL

It seems that NumPy and MKL are required to run SciPy, so download the WHL file of NumPy + MKL from the URL below. http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy

I downloaded numpy-1.11.1 + mkl-cp35-cp35m-win_amd64.whl because it is Windows10 (64bit), Python3.5 series. image

Next, open a command prompt and execute `pip install (WHL file path)` to install the downloaded WHL file. image If Sucessfully ... is displayed at the command prompt, the installation of NumPy + MKL is complete.

3. Install SciPy

Download SciPy's WHL from the URL below. http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy

I downloaded scipy-0.18.0rc2-cp35-cp35m-win_amd64.whl because it is Windows10 (64bit), Python3.5 series.

pip installAnd install it. image

Installation confirmation

You can check the installed packages by running pip freeze at the command prompt. image I was able to confirm that NumPy + MKL and SciPy are installed.

Operation check of NumPy + SciPy

Try running the following py file to make sure it's installed correctly

test.py


import numpy as np
from scipy import integrate

def computePi(x):
    return 4/(1+x**2)

print (integrate.quad(computePi, 0, 1))

image.png I was able to confirm that it works properly.

Digression

As an aside, I recommend using the Atom editor because you can run py files on the editor. image.png

If you install atom-runner, you can run py on the editor. image.png

Recommended Posts

Install and run Python3.5 + NumPy + SciPy on Windows 10
Install python on windows
Install Python3, numpy, pandas, matplotlib, etc. on Windows
Install OpenCV 4.0 and Python 3.7 on Windows 10 with Anaconda
Install Python 3.5.1 + numpy + scipy + α in Windows environment
Install ZIP version Python and pip on Windows 10
Install watchdog on Windows + Python 3.3
Install Python and Flask (Windows 10)
[Python] [Chainer] [Windows] Install Chainer on Windows
[Windows] [Python3] Install python3 and Jupyter Notebook (formerly ipython notebook) on Windows
Python 3.6 on Windows ... and to Xamarin.
Install and run dropbox on Ubuntu 20.04
Install python2.7 on windows 32bit environment
Install xgboost (python version) on Windows
Install Python on Windows + pip + virtualenv
Build and install OpenCV on Windows
Install Pytorch on Blender 2.90 python on Windows
Integrate Modelica and Python on Windows
Install Python development environment on Windows 10
Install easy_install and pip on windows
Install python and Visual Studio Code on windows10 (April 2020 version)
Python on Windows
Run servo with Python on ESP32 (Windows)
[Kivy] How to install Kivy on Windows [Python]
Install wsl2 and master linux on windows
scipy stumbles with pip install on python 2.7.8
Install CVXOPT, NumPy, SciPy on Travis CI
Run py.test on Windows Anaconda and MinGW
Install pyenv and Python 3.6.8 on Ubuntu 18.04 LTS
How to install OpenCV on Cloud9 and run it in Python
Install python on WSL
Python and numpy tips
Put MicroPython on Windows to run ESP32 on Python
Install Python on Pidora.
Install Scrapy on python3
(Windows) Causes and workarounds for UnicodeEncodeError on Python 3
Notes on installing Python3 and using pip on Windows7
Install Python on Mac
Install Python 3 on Mac
Install Python3.4 on CentOS 6.6
Install Anaconda on Windows 10
python basic on windows ②
Install numpy on Marvericks
Run pip install on MacOS Python 3.7 or later
Install pycuda on Windows10
Install Python 2.7.3 on CentOS 5.4
Install pygraphviz on Windows 10
Install Python 3.3 on Ubuntu 12.04
[Python] How to install OpenCV on Anaconda [Windows]
Install Chainer 1.5.0 on Windows
Install Python 3.4 on Mac
[Note] Installing Python 3.6 + α on Windows and RHEL
Install MongoDB on Ubuntu 16.04 and operate via python
Install Python 3.6 on Docker
Install Python and libraries for Python on MacOS Catalina
Install Python (for Windows)
Install Python3 and Django on Amazon Linux (EC2) and run your web server
Until you install Python with pythonbrew and run Flask on a WSGI server
Install Python3 on Mac and build environment [Definitive Edition]
Install selenium on Mac and try it with python
Install Apache 2.4 on Ubuntu 19.10 Eoan Ermine and run CGI