Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

As of Pypy 5.9, OpenCV just works. Instructions for usage in virtual environment:

  • make virtual environment with virtualenv -p /usr/bin/pypy3
  • activate venv
  • clone numpy repository and install with python build && python install
  • copy pypy library into virtual environment and change its name, so that opencv finds it with cp /usr/lib/ $VIRTUAL_ENV/
  • clone opencv repository and add these flags to cmake:
  • make
  • copy cv2 shared object into venv's site-packages cp lib/python3/ ~/.pypyenv/site-packages/
  • check installation with python -c "import cv2"