I have run sudo apt-get install libcwiid1 libcwiid1-dev before the pip command but got the following error message Reading package lists.
errorĬomplete output from command /usr/bin/python3 -u -c "import setuptools, tokenize _file_='/tmp/pip-build-pr2tdgci/cwiid/setup.py' f=getattr(tokenize, 'open', open)(_file_) code=f.read().replace('\r\n', '\n') f.close() exec(compile(code, _file_, 'exec'))" install -record /tmp/pip-3twbm9c7-record/install-record.txt -single-version-externally-managed -compile:Ĭommand "/usr/bin/python3 -u -c "import setuptools, tokenize _file_='/tmp/pip-build-pr2tdgci/cwiid/setup.py' f=getattr(tokenize, 'open', open)(_file_) code=f.read().replace('\r\n', '\n') f.close() exec(compile(code, _file_, 'exec'))" install -record /tmp/pip-3twbm9c7-record/install-record.txt -single-version-externally-managed -compile" failed with error code 1 in /tmp/pip-build-pr2tdgci/Īny ideas what I'm doing wrong? I did research the topic and found some chat on github about the Python 3 extension but it covers a different error message. fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.5m -c cwiidmodule.c -o build/temp.linux-armv7l-3.5/cwiidmodule.oĬwiidmodule.c:27:19: fatal error: cwiid.h: No such file or directoryĮrror: command 'arm-linux-gnueabihf-gcc' failed with exit status 1 errorĬomplete output from command /usr/bin/python3 -u -c "import setuptools, tokenize _file_='/tmp/pip-build-pr2tdgci/cwiid/setup.py' f=getattr(tokenize, 'open', open)(_file_) code=f.read().replace('\r\n', '\n') f.close() exec(compile(code, _file_, 'exec'))" bdist_wheel -d /tmp/tmpawo66t7jpip-wheel-python-tag cp35:Īrm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.5-6waWnr/python3.5-3.5.3=. The numpy variable also points to the NumPy installation in the cv environment. Notice how the Interpreter points to our python2.7 binary located in the cv virtual environment. $ sudo pip3 install cwiidīuilding wheels for collected packages: cwiid Figure 6: Checking that Python 3 will be used when compiling OpenCV 3 for Raspbian Stretch on the Raspberry Pi 3.
I'm trying to download and install the cwiid package with extension for the Raspberry Pi 3B+.