Install Python3, numpy, pandas, matplotlib, etc. on Windows

It seems that there is a high demand for masochists who run Python on Windows, so I updated it http://qiita.com/mojaie/items/995661f7467ffdb40331

Recently I'm using Python3, so I'm writing on the premise of 3, but I think that you can probably build an environment with 2 in the same way.

Python installation

Download and install the latest version of 32bit. At the time of writing, it is version 3.4.3. It is the place to install, but somehow it is C: // Program Files (x86) / Python34. https://www.python.org/downloads/

From the Windows Control Panel System → Environment Variables Add the Python installation folder to the end of the system environment variable PATH.

C:Hogehoge;C:Fuga Fuga;C:¥Program Files (x86)¥Python34


Open a command prompt and confirm that the addition of environment variables is reflected. You can now run Python from the command line. ʻExit ()` when exiting.

> echo %PATH%
C:Hogehoge;C:Fuga Fuga;C:¥Program Files (x86)¥Python34
> python
>>> print("Hello, world.")
Hello, world.
>>> exit()
>

Install what you need with pip

Open a command prompt with ** administrator privileges ** (right-click the command prompt icon and you will see Run with administrator privileges).

Install numpy.

However, I get angry and the installation fails. You will be asked to install VC ++, but ignore it and download and install it for Windows from the official website of numpy. It's a name like win32-superpack.

http://sourceforge.net/projects/numpy/

The same is true for SciPy, please download superpack from the official website. I don't use SciPy, so I'll omit it.

Install other necessary items with pip as appropriate.

> python -m pip install pandas
> python -m pip install matplotlib
> python -m pip install networkx
> python -m pip install pyyaml
> python -m pip install xlsxwriter
> python -m pip install pyside
> python -m pip install tornado

Check what was installed with pip.

> python -m pip list

decorator (4.0.2)
matplotlib (1.4.3)
numpy (1.9.2)
pandas (0.16.2)
pip (7.1.0)
pyparsing (2.0.3)
PySide (1.2.2)
python-dateutil (2.4.2)
pytz (2015.4)
PyYAML (3.11)
setuptools (12.0.5)
six (1.9.0)
tornado (4.2.1)
XlsxWriter (0.7.3)

networkx gets angry during installation, but it seems that it has been installed. pyside will give an error if you do not have administrator privileges at the command prompt. Packages that include the C library are often useless with pip, so I think it may be easier for those that have an installer. Spyder or Conda may be easier. Always keep in mind that you have the option of throwing away Windows and buying a Mac.

Use python

Put PYTHONPATH in your Python project folder.

From the Windows Control Panel System → Environment Variables Create a new PYTHONPATH in the system environment variable and enter the location of your project folder. Make sure you have a pass.

> echo %PYTHONPATH%
C:\ My project folder

You can now import the modules in your project folder.

> python
>>> import myproject
>>>

If you want to run the script, go to the project folder with cd% PYTHONPATH%.

> cd %PYTHONPATH%
> python myscript.py
Execution result

Recommended Posts

Install Python3, numpy, pandas, matplotlib, etc. on Windows
Install python on windows
Install and run Python3.5 + NumPy + SciPy on Windows 10
Install Numpy on virtualenv on Windows
Install watchdog on Windows + Python 3.3
Install pandas 0.14 on python3.4 [on Mac]
[Python] [Chainer] [Windows] Install Chainer on Windows
Install Bash on Ubuntu on Windows, Ruby, Python, Jupyter, etc.
Install python2.7 on windows 32bit environment
Install xgboost (python version) on Windows
Install Python on Windows + pip + virtualenv
Install Pytorch on Blender 2.90 python on Windows
Install Python development environment on Windows 10
Python on Windows
[Kivy] How to install Kivy on Windows [Python]
Install python on WSL
Install Python on Pidora.
Install Scrapy on python3
If you want to use NumPy, Pandas, Matplotlib, IPython, SciPy on Windows
Install Python on Mac
Install OpenCV 4.0 and Python 3.7 on Windows 10 with Anaconda
Install Python 3 on Mac
Install Python3.4 on CentOS 6.6
Install Python 3.5.1 + numpy + scipy + α in Windows environment
Installing pandas on python2.6
Install Anaconda on Windows 10
python basic on windows ②
Install numpy on Marvericks
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
[Numpy / pandas / matplotlib Exercise 01]
Install Python 3.6 on Docker
Install Python (for Windows)
Install ZIP version Python and pip on Windows 10
Python Basic --Pandas, Numpy-
[Windows] [Python3] Install python3 and Jupyter Notebook (formerly ipython notebook) on Windows
Introduction to Python numpy pandas matplotlib (~ towards B3 ~ part2)
For those who can't install Python on Windows XP
Run Openpose on Python (Windows)
How to install Python [Windows]
Install Python 3.8 on RHEL 8 (AppStream)
Use matplotlib on Ubuntu 12 & Python
Install Python and Flask (Windows 10)
Install Win-Kex (kali-linux) on Windows 10.
Install pygame on python3.4 on mac
Windows10: Install python dlib library
Install cvxpy on windows, Anaconda
Python + Kivy development on Windows
Install Python 3.8 on CentOS 7 (SCL)
Sphinx-autobuild (0.5.2) on Windows7, Python 3.5.1, Sphinx 1.3.5
Fastest Python installation on Windows
Build Python environment on Windows
Install OpenCV on Ubuntu + python
Install Chainer 1.6 (GPU) on Windows 7.
Twitter posts on Python 3 etc.
Build python environment on windows