Below are some problems we encountered while testing endocal, together with a possible solution to each. If you experience others, please report them by opening a new issue on the project's issue tracker.
Solution: install PyYAML separately with pip install pyyaml
.
The error log would look like this:
[...]
copying lib3\yaml\serializer.py -> build\lib.win-amd64-3.5\yaml
copying lib3\yaml\tokens.py -> build\lib.win-amd64-3.5\yaml
copying lib3\yaml\__init__.py -> build\lib.win-amd64-3.5\yaml
running build_ext
creating build\temp.win-amd64-3.5
creating build\temp.win-amd64-3.5\Release
checking if libyaml is compilable
error: [WinError 2] The system cannot find the file specified
Solution:
- Download the wheel (e.g.
PyYAML-3.11-cp27-cp27m-win_amd64.whl
(choose the right one for your system by inspecting the Python and platform version encoded in the file name) from the Unofficial Windows Binaries for Python Extension Packages. - Install the downloaded wheel, e.g.
pip install PyYAML-3.11-cp27-cp27m-win_amd64.whl
.
Solution: install numpy separately with pip install --upgrade numpy
.
- Install Homebrew
- Install OpenCV3 by running the following commands:
brew tap homebrew/science
brew install opencv3 --with-contrib --with-tbb --with-python3 --with-ffmpeg
- Download the binary installer from http://opencv.org/downloads.html.
- Extract it to e.g.
C:\OpenCV\OpenCV310
. - Add the following directories to the system
PATH
:C:\OpenCV\OpenCV310\build\python\2.7\x64
C:\OpenCV\OpenCV310\build\bin
- Add
C:\OpenCV\OpenCV310\build\python\2.7\x64
toPYTHONPATH
(createPYTHONPATH
if it does not exist).