en_PythonInstallation_Win - hasegaw/IkaLog GitHub Wiki
Installing Python3 on Windows
IkaLog is Python-based software. This page describes how to install Python 3.x to run IkaLog.
Python3 requirements
- Tested with Python 3.4.3, but IkaLog should work with Python 3.5 either. Of course you'll need to find corresponding prerequisites.
- 32BIT VERSION OF PYTHON & OPENCV BINARY IS STRONGLY RECOMMENDED, since some capture devices don't provide DirectShow support for x64 applications. videoinput.dll in IkaLog/lib/ is also compiled for x32 version of Python.
- Needs OpenCV 3.x (Tested on OpenCV 3.0.0). OpenCV 2.x won't work due to incompatibility of machine learning features.
- Needs FFMPEG integration in OpenCV 3.x to open many movie formats, including H.264, and processing those faster.
- OpenCV 3.x must be installed with its Python3 bindings.
- NumPy should be configured with linear libraries. Proper configuration will boost IkaLog performance.
- Encoding mode must be utf-8.
- The procedure below assumes you'll install Python 3.4 on C:\IkaLog\Python34\
Create an installation directory
Open Command Prompt (cmd.exe) and do:
mkdir C:\IkaLog
mkdir C:\IkaLog\archives
Install Python 3.4.3
Grab Python 3.4.3 installer packages
https://www.python.org/downloads/release/python-343/
https://www.python.org/ftp/python/3.4.3/python-3.4.3.msi
Install the installer package to the folder below:
C:\IkaLog\Python34
Install OpenCV 3.0 and Numpy
Download Numpy and OpenCV 3.0 packages from the web site below.
http://www.lfd.uci.edu/~gohlke/pythonlibs/
Files to download:
- numpy-1.10.4+mkl-cp34-none-win32.whl
- opencv_python-3.1.0-cp34-none-win32.whl
Note: cp34 indicates the package is built for CPython 3.4. win32 indicates it is the 32bit version.
Install Python modules
cd C:\IkaLog\Python34\Scripts
pip install "C:\IkaLog\Archives\numpy-1.9.3+mkl-cp34-none-win32.whl"
pip install "C:\IkaLog\Archives\opencv_python-3.0.0-cp34-none-win32.whl"
pip install slackweb
pip install fluent-logger
pip install requests-oauthlib
pip install urllib3
pip install u-msgpack-python
pip install Pillow
pip install tornado
pip install certifi
More installation tasks (for IkaUI)
Find and install PyYAML and wxPython 3.x if you want to run IkaUI.py.
wxPython can be downloaded from here:
http://wxpython.org/Phoenix/snapshot-builds/
Download the latest build ending in cp34-none-win32.whl and install it using pip like the other modules above.
and PyYAML can be downloaded from here:
http://pyyaml.org/wiki/PyYAML
Download the latest installer ending in .win32-py3.4.exe for 32bit Windows and run it. It should automatically find the install directory and go from there.