I am trying to install the face_recognition module in my terminal for a project but I am having trouble with some of the error messages. I already ran pip install on cmake and dlib but whenever I try running pip install face_recognition or pipenv install face_recognition, I get the following error message:
note: This error originates from a subprocess, and is likely not a problem
with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> dlib
I am not quite sure what this means and I have been looking around to the best of my ability to solve the problem. I have already installed dlib through pip.
Related
I'm struggling to Install Cartopy from the Terminal and from Pycharm.
This is what I get as error message:
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for Cartopy
ERROR: Could not build wheels for Cartopy, which is required to install pyproject.toml-based projects
Can someone please help with the problem. Thanks
I tried to Update the Pip Install
Here are two solutions since you didn't specify the OS you are using or the full error log.
If on a Linux and the error log is due to geos_c.h is not found.
Install the developer version of the geos library
sudo apt install libgeos-dev
as can be seen from here.
If you are on a mac or windows, you may use conda to install it. find the installation instruction miniconda here then
conda install -c conda-forge cartopy
Having this error while installing pycaret through following command:
!pip install pycaret..
error: subprocess-exited-with-error
pip subprocess to install build dependencies did not run successfully.
exit code: 1
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
Encountered error while trying to install package.
numpy
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
pip subprocess to install build dependencies did not run successfully.
exit code: 1
See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
I have tried the command !pip install pycaret on jupyter notebook but it continuously giving the same error.
I would recommend installing the pre-release version of pycaret (3.0.0rc4 as of writing this answer). Many of the common installation issues have been resolved there. Make sure you are installing this on a new (conda) environment.
pip install -U --pre pycaret
I'm trying to install fbprohet , I saw this article (Fbprophet installation error - failed building wheel for fbprophet) where I need to install pystan first.
->Im using my virtual environment with python 3.10.4 update (Note after several attempts with python 3.6, 3.8, 3.9 error persists!
->replicated the issue with pip and conda both in jupyter and cmd prompt with administrator aswell
->Jupyter NB: !pip install fbprophet
Error: note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for fbprophet
error: subprocess-exited-with-error
Running setup.py install for fbprophet did not run successfully.
I am trying to install Basemap using pip, however at some point it reaches the error:
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> numpy
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
I do not really know what to do here, and I could not find anyone who encountered the same error. I have tried upgrading pip and setuptools, but they did not seem to help. What should I do?
P.S. I have been trying to install basemap for the past 4 days and I was not very sucessfull. If you know how to install it on MacOS, please hit me up! Thank you!
For Windows:
To install basemap you need to download the wheel file from this path:
https://www.lfd.uci.edu/~gohlke/pythonlibs/#basemap
for python 3.10 this will be the file:
basemap‑1.3.2‑cp310‑cp310‑win_amd64.whl
Then you have to go to the folder where the above mentioned .whl file is saved and run this command from there:
pip install basemap‑1.3.2‑cp310‑cp310‑win_amd64.whl
For Mac OS please refer:
https://github.com/matplotlib/basemap/releases:
Make sure you have:
brew install geos
brew install matplotlib
brew install numpy
brew install proj
Add export GEOS_DIR="/user/local/Cellar/geos/3.10.2/" to your .bash profile and reload it via:
source ~/.bash_profile
git clone --depth 1 https://github.com/matplotlib/basemap.git
then in the basemap/packages/basemap directory
pip3 install
For Google Colab:
!sudo apt-get install libgeos-3.6.2
!sudo apt-get install libgeos-dev
!pip install git+https://github.com/matplotlib/basemap#subdirectory=packages/basemap
i wanted to use pyBluez for Python, so i ran "pip install pybluez" ( I use Win11 64gb)
but this error happend:
Collecting pybluez
Using cached PyBluez-0.23.tar.gz (97 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in PyBluez setup command: use_2to3 is invalid.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
I faced the same issue with my RHEL.
This helped me to overcome errors:
Enter pip list in terminal
Find the version of setuptools.
If setuptools version is more than 58, make it to less than 58 with the command pip install setuptools==57.0.0
After that I tried installing pyObex, which gave me again error related to Python.h not found.
Run the command to install libraries needed for python-dev as: yum install python3-devel (use apt-get if you are on Ubuntu or other distros)
Run this command to install Bluetooth package yum install libbluetooth-dev. (use apt-get if you are on Ubuntu or other distros)
If step 6 gives some error run this one instead yum install bluez-libs-devel
Now you are good to install pip install PyOBEX