I think provides
section should contain entry python-dlib=${pkgver}
(version included). Otherwise pakages like python-face_recognition
won't install due to insufficient version.
Search Criteria
Package Details: python-dlib-cuda 19.24.6-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/python-dlib.git (read-only, click to copy) |
---|---|
Package Base: | python-dlib |
Description: | Dlib is a general purpose cross-platform C++ library designed using contract programming and modern C++ techniques. |
Upstream URL: | http://www.dlib.net/ |
Licenses: | boost |
Conflicts: | python-dlib |
Provides: | python-dlib |
Submitter: | u1bmoW1r16 |
Maintainer: | petronny (AutoUpdateBot) |
Last Packager: | petronny |
Votes: | 16 |
Popularity: | 0.25 |
First Submitted: | 2016-10-27 15:05 (UTC) |
Last Updated: | 2024-08-10 03:07 (UTC) |
Dependencies (19)
- cblas (blis-cblas-openmpAUR, blis-cblasAUR, aocl-blis-aoccAUR, blas-gitAUR, atlas-lapackAUR, blas-aocl-gccAUR, blas-aocl-aoccAUR, blis-gitAUR, blisAUR, openblas-lapackAUR, blas-mklAUR, aocl-blisAUR, blas-openblas)
- cuda (cuda11.1AUR, cuda-12.2AUR, cuda12.0AUR, cuda11.4AUR, cuda11.4-versionedAUR, cuda12.0-versionedAUR)
- cudnn
- ffmpeg (ffmpeg-nvcodec-11-1-gitAUR, ffmpeg-ffplayoutAUR, ffmpeg-amd-full-gitAUR, ffmpeg-cudaAUR, ffmpeg-full-gitAUR, ffmpeg-gitAUR, ffmpeg-libfdk_aacAUR, ffmpeg-fullAUR, ffmpeg-decklinkAUR, ffmpeg-headlessAUR, ffmpeg-obsAUR, ffmpeg-amd-fullAUR)
- giflib (giflib-gitAUR)
- lapack (aocl-libflame-aoccAUR, lapack-gitAUR, atlas-lapackAUR, blas-aocl-gccAUR, blas-aocl-aoccAUR, openblas-lapackAUR, blas-mklAUR, aocl-libflameAUR, blas-openblas)
- libjpeg-turbo (mozjpeg-gitAUR, libjpeg-turbo-gitAUR, mozjpegAUR)
- libjxl (libjxl-metrics-gitAUR, libjxl-gitAUR)
- libpng (libpng-gitAUR, libpng-apngAUR)
- libx11 (libx11-gitAUR)
- python (python37AUR, python311AUR, python310AUR)
- boost (boost-gitAUR) (make)
- ccache-extAUR (make)
- cmake (cmake-gitAUR) (make)
- cuda (cuda11.1AUR, cuda-12.2AUR, cuda12.0AUR, cuda11.4AUR, cuda11.4-versionedAUR, cuda12.0-versionedAUR) (make)
- cudnn (make)
- python-setuptools (make)
- sqlite (sqlite-fossilAUR) (make)
- sqlite (sqlite-fossilAUR) (optional)
Required by (6)
- howdy (requires python-dlib)
- howdy-beta-git (requires python-dlib)
- howdy-bin (requires python-dlib)
- howdy-git (requires python-dlib)
- openface-git (requires python-dlib)
- python-face_recognition (requires python-dlib)
Sources (1)
Kicer commented on 2018-08-27 19:49 (UTC)
AbysmalBiscuit commented on 2018-07-21 09:17 (UTC)
@Kicer You are correct about gcc6 not being needed. In the past dlib and cuda programs did need gcc6 to compile properly, but it seems that is no longer the case.
@flipflop97 I have added the provides and conflicts.
@petronny
I have gone through all the optional dependencies. Only sqlite
and neon
can be removed and python-dlib will still work. If any of the others are removed it will fail to import due to missing libraries of the shared object: dlib.cpython-36m-x86_64-linux-gnu.so
.
Note: removing sqlite
will likely break parts of your system. :p
Kicer commented on 2018-07-19 20:19 (UTC)
Hi
Why is there gcc6 needed? I've modified PKBUILD to use system gcc and it works fine.
flipflop97 commented on 2018-07-04 19:50 (UTC) (edited on 2018-07-04 19:58 (UTC) by flipflop97)
Hi,
I have a package that depends on either python-dlib or python-dlib-cuda. I'd like to let it depend on either of them.
Right now both packages are totally separate. Can you maybe add a provides/conflicts/replaces rule for python-dlib so that both packages are treated as the same?
petronny commented on 2018-07-03 05:02 (UTC)
@accensi fixed.
accensi commented on 2018-07-03 04:55 (UTC)
Problems: - Even if just installing python-dlib, it is downloading all CUDA support - 1.4GB - Error (4/4) Updating the desktop file MIME type cache... ==> ERROR: python-dlib is not available for the 'x86_64' architecture. 2018-07-03 01:51:41,601 - wrappers - makepkg - ERROR - makepkg query makepkg -cf --noconfirm failed in directory ...../python-dlib
Kicer commented on 2018-07-01 16:10 (UTC)
@petronny, Hi, sorry, I've not noticed you are the new owner. I've been trying contact previous one before filling request.
petronny commented on 2018-07-01 13:13 (UTC)
@AbysmalBiscuit Thanks for your answers and I'm clear to my first question.
My second question, or the other questions are:
- If I build and install python-dlib with sqlite, then remove sqlite with
pacman -Rdd sqlite
, will python-dlib run? - If I build and install python-dlib with lapack, then remove lapack with
pacman -Rdd lapack
, will python-dlib run? - If I build and install python-dlib with libpng, then remove libpng with
pacman -Rdd libpng
, will python-dlib run?
etc.
petronny commented on 2018-07-01 13:09 (UTC)
@Kicer Hi I just took over this package and I will update it in a few days. Sorry for the delay but please leave comments to contact me before filing a request.
AbysmalBiscuit commented on 2018-06-28 08:15 (UTC)
@petronny Sorry for the delay in answering your questions.
-
If you remove cuda or cudnn (since both are needed to compile and run dlib with cuda support) with
pacman -Rdd cuda cudnn
, python-dlib-cuda will not fallback to using only the cpu. In fact importing dlib will simply fail with an ImportError with not being able to open the shared object file(s) (either cuda or cudnn). -
I do not fully understand your question, I will assume that you are asking if it is possible to replace cuda with another dependency and still have be capable of using dlib in python. You cannot replace cuda with something else, or only with cudnn. You need both cuda and cudnn, hence why they are not only make dependencies, but also dependencies.
The dependency issue and the need to recompile if you would want to switch from having cuda support to using cpu only are likely the reason why python dlib was originally split into a cuda and non-cuda version.
If you have any other questions please don't hesitate to ask.
Pinned Comments
petronny commented on 2024-03-30 13:11 (UTC) (edited on 2024-03-30 13:13 (UTC) by petronny)
Set
_build_cpu
and_build_cuda
to 1 and 0 to build or not build the CPU or CUDA version.If
options=(!lto)
has no effect, please check if it's still enabled in/etc/makepkg.conf
.petronny commented on 2023-11-28 04:57 (UTC)
Prebuilt binaries of this package can be found in arch4edu.