![]() errorĮRROR: Command errored out with exit status 1:Ĭommand: '/home/badrelden/Desktop/test python sound/venv/bin/python3' -u -c 'import sys, setuptools, tokenize sys.argv = '"'"'/tmp/pip-install-tai2snq9/dlib/setup.py'"'"' _file_='"'"'/tmp/pip-install-tai2snq9/dlib/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-record-bhy0sde6/install-record.txt -single-version-externally-managed -compile -install-headers '/home/badrelden/Desktop/test python sound/venv/include/site/python3.8/dlib' Installing collected packages: Click, numpy, dlib, face-recognition-models, face-recognition Running setup.py clean for face-recognition-modelsįailed to build dlib face-recognition-models ![]() ERROR: Failed building wheel for face-recognition-models It worked for me as a charm.I'm facing this error while installing face_recognition in a virtualenv with Python 3.8.10 on Ubuntu 20.04. Also, credit to Adrian Rosebrock on his post. Step 5: Test out the OpenCV 3.0 and Python 3.4+ install $ workon cv Notice how I am changing the name from to cv2.so - this is so Python can import our OpenCV bindings using the name cv2. $ ln -s /usr/local/lib/python3.4/site-packages/ cv2.so However, in order to use OpenCV 3.0 within our cv virtual environment, we first need to sym-link OpenCV into the site-packages directory of the cv environment, like this: (Be sure to take note of ) $ cd ~/.virtualenvs/cv/lib/python3.4/site-packages/ Here, our OpenCV bindings are stored under the name If you’ve reached this step, OpenCV 3.0 should now be installed in /usr/local/lib/python3.4/site-packages/. Let's start OpenCV compile process : $ make -j4Īssuming OpenCV 3.0 compiled without error, you can now install it on your system: $ sudo make install D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \ Step 3: Build and install OpenCV 3.0 with Python 3.4+ bindings $ cd ~ OpenCV represents images as NumPy arrays, so we need to install NumPy into our cv virtual environment: $ pip install numpy We’ll need to install the Python 3.4+ headers and development files: $ sudo apt-get install python3.4-dev Source /usr/local/bin/virtualenvwrapper.sh Now we can update our ~/.bashrc file (place at the bottom of the file): # virtualenv and virtualenvwrapperĮxport VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 Let’s use our fresh pip3 install to setup virtualenv and virtualenvwrapper : $ sudo pip3 install virtualenv virtualenvwrapper Let’s download pip, a Python package manager, installed for Python 3: $ wget ![]() Install packages that are used to optimize various functions inside OpenCV, such as matrix operations: $ sudo apt-get install libatlas-base-dev gfortran Install GTK so we can use OpenCV’s GUI features: $ sudo apt-get install libgtk2.0-dev Install libraries and packages used to read various image and videos formats from disk: $ sudo apt-get install libjpeg8-dev libtiff5-dev libpng-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev Install developer tools used to compile OpenCV 3.0: $ sudo apt-get install build-essential cmake git pkg-config Upgrade any pre-installed packages: $ sudo apt-get update Well this will be a lengthy answer, so let's start :
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |