I'm trying to download face_recognition for a project. Keep getting this error. Any ideas to fix it?
C:\>pip install face_recognition
Requirement already satisfied: numpy in c:\python\lib\site-packages (from face_recognition) (1.22.2)
Running setup.py install for dlib ... error
error: subprocess-exited-with-error
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:14 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:14 (project):
No CMAKE_CXX_COMPILER could be found
Related
I am trying to install cartopy in my Anaconda installation, but it won't work. Here are the error messages. How do I get this package to install? I tried installing using
pip install cartopy
and
conda install -c conda-forge cartopy
Both give these errors:
Building wheels for collected packages: cartopy
Building wheel for cartopy (PEP 517): started
Building wheel for cartopy (PEP 517): finished with status 'error'
Failed to build cartopy
ERROR: Command errored out with exit status 1:
command: 'C:\Users\ruben\anaconda3\python.exe' 'C:\Users\ruben\anaconda3\lib\site-
packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C
<string>:117: UserWarning: Unable to determine GEOS version. Ensure you have 3.7.2 or
later installed, or installation may fail.
Fobuild\temp.win-amd64-cpython-39\Release\lib/cartopy/trace.obj
trace.cpp
lib/cartopy/trace.cpp(719): fatal error C1083: Cannot open include file: 'geos_c.h': No
such file or directory
error: command 'C:\\Program Files\\Microsoft Visual
Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.31.31103\\bin\\HostX86\\x64\\cl.exe' failed
with exit code 2
----------------------------------------
ERROR: Failed building wheel for cartopy
ERROR: Could not build wheels for cartopy which use PEP 517 and cannot be installed
directly
Anaconda gives me these errors:
conda install cartopy
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: |
Now it just sits there are spins.
I have the geos package installed. I don't knw why it can't find the installation.
This solved it for me in a Linux Mint system. I can see that OP's system is Windows, so not sure if it'll work for them also. But for folks on ubuntu/linux landing here,
We need to have libgeos-dev installed first:
sudo apt install libgeos-dev
got this from https://techoverflow.net/2021/08/13/6348/ .
This seems to provide the 'geos_c.h' file mentioned.
After this, pip install cartopy worked properly for me.
I'm trying to install the python slycot package on ubuntu 18.04. But, I can't quite find the way to do it. I keep getting the following error:
alemoreno#alejandro:~$ pip3 install slycot
Defaulting to user installation because normal site-packages is not writeable
Collecting slycot
Using cached slycot-0.4.0.0.tar.gz (1.5 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /usr/local/lib/python3.9/dist-packages (from slycot) (1.22.1)
Building wheels for collected packages: slycot
Building wheel for slycot (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for slycot (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [95 lines of output]
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Running
'/home/alemoreno/.local/bin/ninja' '--version'
failed with:
Traceback (most recent call last):
File "/home/alemoreno/.local/bin/ninja", line 5, in <module>
from ninja import ninja
ModuleNotFoundError: No module named 'ninja'
-- Configuring incomplete, errors occurred!
See also "/tmp/pip-install-g8wahozy/slycot_49cb919281814f419e836df3bc561dfd/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
Not searching for unused variables given on the command line.
-- The C compiler identification is GNU 7.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- The Fortran compiler identification is unknown
CMake Error at CMakeLists.txt:4 (ENABLE_LANGUAGE):
No CMAKE_Fortran_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "FC" or the CMake cache entry CMAKE_Fortran_COMPILER to the full
path to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "/tmp/pip-install-g8wahozy/slycot_49cb919281814f419e836df3bc561dfd/_cmake_test_compile/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/pip-install-g8wahozy/slycot_49cb919281814f419e836df3bc561dfd/_cmake_test_compile/build/CMakeFiles/CMakeError.log".
--------------------------------------------------------------------------------
-- Trying "Ninja" generator
--------------------------------
---------------------------
----------------------
-----------------
------------
-------
--
--
-------
------------
-----------------
----------------------
---------------------------
--------------------------------
-- Trying "Ninja" generator - failure
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
-- Trying "Unix Makefiles" generator
--------------------------------
---------------------------
----------------------
-----------------
------------
-------
--
--
-------
------------
-----------------
----------------------
---------------------------
--------------------------------
-- Trying "Unix Makefiles" generator - failure
--------------------------------------------------------------------------------
********************************************************************************
scikit-build could not get a working generator for your system. Aborting build.
Building Linux wheels for Python 3.9 requires a compiler (e.g gcc).
But scikit-build does *NOT* know how to install it on ubuntu
To build compliant wheels, consider using the manylinux system described in PEP-513.
Get it with "dockcross/manylinux-x64" docker image:
https://github.com/dockcross/dockcross#readme
For more details, please refer to scikit-build documentation:
http://scikit-build.readthedocs.io/en/latest/generators.html#linux
********************************************************************************
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for slycot
Failed to build slycot
ERROR: Could not build wheels for slycot, which is required to install pyproject.toml-based projects
Here are some of the programs that i'm using:
alemoreno#alejandro:~$ pip3 --version
pip 22.0.3 from /home/alemoreno/.local/lib/python3.9/site-packages/pip (python 3.9)
alemoreno#alejandro:~$ ninja --version
1.10.2.git.kitware.jobserver-1
And its location:
alemoreno#alejandro:~$ whereis ninja
ninja: /usr/bin/ninja /home/alemoreno/.local/bin/ninja /usr/share/man/man1/ninja.1.gz
I would really appreciate if someone could help me because i'm wasting a lot of time with this install and i need to get to actually use it.
Thanks in advance.
I installed with conda and it worked for me.
conda install -c conda-forge slycot
Building wheels for collected packages: pywinpty
Building wheel for pywinpty (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pywinpty (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [72 lines of output]
Running `maturin pep517 build-wheel -i c:\users\aryal\appdata\local\programs\python\python38-32\python.exe`
Compiling proc-macro2 v1.0.36
Compiling unicode-xid v0.2.2
Compiling windows_x86_64_msvc v0.29.0
Compiling libc v0.2.117
Compiling syn v1.0.86
error: could not compile `windows_x86_64_msvc` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: build failed
💥 maturin failed
Caused by: Failed to build a native library through cargo
Caused by: Cargo build finished with "exit code: 101": `cargo rustc --message-format json --manifest-path Cargo.toml --release --lib --`
ðŸ\x8d¹ Building a mixed python/rust project
🔗 Found pyo3 bindings
ðŸ\x90\x8d Found CPython 3.8 at c:\users\aryal\appdata\local\programs\python\python38-32\python.exe
error: linker `link.exe` not found
|
= note: program not found
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed with the Visual C++ option
error: linker `link.exe` not found
|
= note: program not found
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed with the Visual C++ option
error: linker `link.exe` not found
|
= note: program not found
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed with the Visual C++ option
error: aborting due to previous error
error: aborting due to previous error
error: aborting due to previous error
error: linker `link.exe` not found
|
= note: program not found
note: the msvc targets depend on the msvc linker but `link.exe` was not found
note: please ensure that VS 2013, VS 2015, VS 2017 or VS 2019 was installed with the Visual C++ option
error: aborting due to previous error
Error: command ['maturin', 'pep517', 'build-wheel', '-i', 'c:\\users\\aryal\\appdata\\local\\programs\\python\\python38-32\\python.exe'] returned non-zero exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pywinpty
Failed to build pywinpty
ERROR: Could not build wheels for pywinpty, which is required to install pyproject.toml-based projects
The errors that I am getting are as follows-:
Building wheels for collected packages: pywinpty
Building wheel for pywinpty (pyproject.toml) ... error
2)error: could not compile windows_x86_64_msvc due to 2 previous errors
3)error: build failed
💥 maturin failed
Caused by: Failed to build a native library through cargo
Caused by: Cargo build finished with "exit code: 101": cargo rustc --message-format json --manifest-path Cargo.toml --release --lib --
ðŸ\x8d¹ Building a mixed python/rust project
🔗 Found pyo3 bindings
ðŸ\x90\x8d Found CPython 3.8 at c:\users\aryal\appdata\local\programs\python\python38-32\python.exe
error: linker link.exe not found
|
= note: program not found
error: linker link.exe not found
You get this error when your default "python" is the 32 bit. uninstall and reinstall the 64 bit python.
I'm trying to install Flask-SimpleLDAP on a Windows machine so I can use Active Directory for authentication for a Dash app I have created.
I'm following this article - https://towardsdatascience.com/a-simple-way-to-integrate-dash-with-ldap-4d5d059ee3a6
The install is failing when it tries to build the wheel for "python-ldap", with the errors:
Building wheel for python-ldap (setup.py) ... error
ERROR: Command errored out with exit status 1:
C:\Users\canderson\AppData\Local\Temp\pip-install-zixltin3\python-ldap\Modules\common.h(15): fatal error C1083: Cannot open include file: 'lber.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for python-ldap
I tried installing with both pip and pip3 with the same result, using the commands:
pip3 install flask-simpleldap
pip install flask-simpleldap
As a workaround I tried installing python3-ldap which installed no problem though it didn't help with the install of Flask-SimpleLDAP as the original (python-ldp) package is bundled into the install.
Do any of you know of a workaround for this or if there is another more freidnly version of Flask-SimpleLDAP available?
I want to install openmesh for python. I've tried: pip install openmesh in the terminal in pycharm.
I'm using Windows 10 and Python 3.8. I've installed cmake using pip install cmake.
Now the following error occurs:
WARNING: The wheel package is not available.
running install
running build
running build_ext
Building for: NMake Makefiles
CMake Error at CMakeLists.txt:3 (project):
Generator
NMake Makefiles
does not support platform specification, but platform
x64
was specified.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
Configuring incomplete, errors occurred!
------------------------------------------------------------
Does anyone know what to do?
I'm thankful for any help!