-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Open
Description
Can somebody please help?
I am trying to install insightface in Forge Classic. It says:
Failed to install insightface; please manually install C++ build tools first
When I try to install it manually with
pip install insightface==0.7.3
it says
311\insightface\model_zoo
copying insightface\model_zoo\retinaface.py -> build\lib.win-amd64-cpython
-311\insightface\model_zoo
copying insightface\model_zoo\scrfd.py -> build\lib.win-amd64-cpython-311\
insightface\model_zoo
copying insightface\model_zoo\__init__.py -> build\lib.win-amd64-cpython-3
11\insightface\model_zoo
creating build\lib.win-amd64-cpython-311\insightface\thirdparty
copying insightface\thirdparty\__init__.py -> build\lib.win-amd64-cpython-
311\insightface\thirdparty
creating build\lib.win-amd64-cpython-311\insightface\utils
copying insightface\utils\constant.py -> build\lib.win-amd64-cpython-311\i
nsightface\utils
copying insightface\utils\download.py -> build\lib.win-amd64-cpython-311\i
nsightface\utils
copying insightface\utils\face_align.py -> build\lib.win-amd64-cpython-311
\insightface\utils
copying insightface\utils\filesystem.py -> build\lib.win-amd64-cpython-311
\insightface\utils
copying insightface\utils\storage.py -> build\lib.win-amd64-cpython-311\in
sightface\utils
copying insightface\utils\transform.py -> build\lib.win-amd64-cpython-311\
insightface\utils
copying insightface\utils\__init__.py -> build\lib.win-amd64-cpython-311\i
nsightface\utils
creating build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d
copying insightface\thirdparty\face3d\__init__.py -> build\lib.win-amd64-c
python-311\insightface\thirdparty\face3d
creating build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mes
h
copying insightface\thirdparty\face3d\mesh\io.py -> build\lib.win-amd64-cp
ython-311\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\light.py -> build\lib.win-amd64
-cpython-311\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\render.py -> build\lib.win-amd6
4-cpython-311\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\transform.py -> build\lib.win-a
md64-cpython-311\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\vis.py -> build\lib.win-amd64-c
python-311\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\__init__.py -> build\lib.win-am
d64-cpython-311\insightface\thirdparty\face3d\mesh
creating build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mes
h_numpy
copying insightface\thirdparty\face3d\mesh_numpy\io.py -> build\lib.win-am
d64-cpython-311\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\light.py -> build\lib.win
-amd64-cpython-311\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\render.py -> build\lib.wi
n-amd64-cpython-311\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\transform.py -> build\lib
.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\vis.py -> build\lib.win-a
md64-cpython-311\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\__init__.py -> build\lib.
win-amd64-cpython-311\insightface\thirdparty\face3d\mesh_numpy
creating build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mor
phable_model
copying insightface\thirdparty\face3d\morphable_model\fit.py -> build\lib.
win-amd64-cpython-311\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model\load.py -> build\lib
.win-amd64-cpython-311\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model\morphabel_model.py -
> build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model\__init__.py -> build
\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\morphable_model
running egg_info
writing insightface.egg-info\PKG-INFO
writing dependency_links to insightface.egg-info\dependency_links.txt
writing entry points to insightface.egg-info\entry_points.txt
writing requirements to insightface.egg-info\requires.txt
writing top-level names to insightface.egg-info\top_level.txt
reading manifest file 'insightface.egg-info\SOURCES.txt'
writing manifest file 'insightface.egg-info\SOURCES.txt'
C:\Users\Gros2\AppData\Local\Temp\pip-build-env-tc_ccasz\overlay\Lib\site-
packages\setuptools\command\build_py.py:212: _Warning: Package 'insightface.thir
dparty.face3d.mesh.cython' is absent from the `packages` configuration.
!!
******************************************************************
**************
############################
# Package would be ignored #
############################
Python recognizes 'insightface.thirdparty.face3d.mesh.cython' as a
n importable package[^1],
but it is absent from setuptools' `packages` configuration.
This leads to an ambiguous overall configuration. If you want to d
istribute this
package, please make sure that 'insightface.thirdparty.face3d.mesh
.cython' is explicitly added
to the `packages` configuration field.
Alternatively, you can also rely on setuptools' discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespa
ce:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" on setuptools document
ation page:
- https://setuptools.pypa.io/en/latest/userguide/package_discovery
.html
If you don't want 'insightface.thirdparty.face3d.mesh.cython' to b
e distributed and are
already explicitly excluding 'insightface.thirdparty.face3d.mesh.c
ython' via
`find_namespace_packages(...)/find_namespace` or `find_packages(..
.)/find`,
you can try to use `exclude_package_data`, or `include-package-dat
a=False` in
combination with a more fine grained `package-data` configuration.
You can read more about "package data files" on setuptools documen
tation page:
- https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[^1]: For Python, any directory (with suitable naming) can be impo
rted,
even if it does not contain any `.py` files.
On the other hand, currently there is no concept of package
data
directory, all directories are treated like packages.
******************************************************************
**************
!!
check.warn(importable)
C:\Users\Gros2\AppData\Local\Temp\pip-build-env-tc_ccasz\overlay\Lib\site-
packages\setuptools\command\build_py.py:212: _Warning: Package 'insightface.data
.images' is absent from the `packages` configuration.
!!
******************************************************************
**************
############################
# Package would be ignored #
############################
Python recognizes 'insightface.data.images' as an importable packa
ge[^1],
but it is absent from setuptools' `packages` configuration.
This leads to an ambiguous overall configuration. If you want to d
istribute this
package, please make sure that 'insightface.data.images' is explic
itly added
to the `packages` configuration field.
Alternatively, you can also rely on setuptools' discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespa
ce:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" on setuptools document
ation page:
- https://setuptools.pypa.io/en/latest/userguide/package_discovery
.html
If you don't want 'insightface.data.images' to be distributed and
are
already explicitly excluding 'insightface.data.images' via
`find_namespace_packages(...)/find_namespace` or `find_packages(..
.)/find`,
you can try to use `exclude_package_data`, or `include-package-dat
a=False` in
combination with a more fine grained `package-data` configuration.
You can read more about "package data files" on setuptools documen
tation page:
- https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[^1]: For Python, any directory (with suitable naming) can be impo
rted,
even if it does not contain any `.py` files.
On the other hand, currently there is no concept of package
data
directory, all directories are treated like packages.
******************************************************************
**************
!!
check.warn(importable)
C:\Users\Gros2\AppData\Local\Temp\pip-build-env-tc_ccasz\overlay\Lib\site-
packages\setuptools\command\build_py.py:212: _Warning: Package 'insightface.data
.objects' is absent from the `packages` configuration.
!!
******************************************************************
**************
############################
# Package would be ignored #
############################
Python recognizes 'insightface.data.objects' as an importable pack
age[^1],
but it is absent from setuptools' `packages` configuration.
This leads to an ambiguous overall configuration. If you want to d
istribute this
package, please make sure that 'insightface.data.objects' is expli
citly added
to the `packages` configuration field.
Alternatively, you can also rely on setuptools' discovery methods
(for example by using `find_namespace_packages(...)`/`find_namespa
ce:`
instead of `find_packages(...)`/`find:`).
You can read more about "package discovery" on setuptools document
ation page:
- https://setuptools.pypa.io/en/latest/userguide/package_discovery
.html
If you don't want 'insightface.data.objects' to be distributed and
are
already explicitly excluding 'insightface.data.objects' via
`find_namespace_packages(...)/find_namespace` or `find_packages(..
.)/find`,
you can try to use `exclude_package_data`, or `include-package-dat
a=False` in
combination with a more fine grained `package-data` configuration.
You can read more about "package data files" on setuptools documen
tation page:
- https://setuptools.pypa.io/en/latest/userguide/datafiles.html
[^1]: For Python, any directory (with suitable naming) can be impo
rted,
even if it does not contain any `.py` files.
On the other hand, currently there is no concept of package
data
directory, all directories are treated like packages.
******************************************************************
**************
!!
check.warn(importable)
creating build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mes
h\cython
copying insightface\thirdparty\face3d\mesh\cython\mesh_core.cpp -> build\l
ib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
copying insightface\thirdparty\face3d\mesh\cython\mesh_core.h -> build\lib
.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.cpp ->
build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
creating build\lib.win-amd64-cpython-311\insightface\data\images
copying insightface\data\images\Tom_Hanks_54745.png -> build\lib.win-amd64
-cpython-311\insightface\data\images
copying insightface\data\images\mask_black.jpg -> build\lib.win-amd64-cpyt
hon-311\insightface\data\images
copying insightface\data\images\mask_blue.jpg -> build\lib.win-amd64-cpyth
on-311\insightface\data\images
copying insightface\data\images\mask_green.jpg -> build\lib.win-amd64-cpyt
hon-311\insightface\data\images
copying insightface\data\images\mask_white.jpg -> build\lib.win-amd64-cpyt
hon-311\insightface\data\images
copying insightface\data\images\t1.jpg -> build\lib.win-amd64-cpython-311\
insightface\data\images
creating build\lib.win-amd64-cpython-311\insightface\data\objects
copying insightface\data\objects\meanshape_68.pkl -> build\lib.win-amd64-c
python-311\insightface\data\objects
copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.c -> bu
ild\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.cpp ->
build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
copying insightface\thirdparty\face3d\mesh\cython\mesh_core_cython.pyx ->
build\lib.win-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
copying insightface\thirdparty\face3d\mesh\cython\setup.py -> build\lib.wi
n-amd64-cpython-311\insightface\thirdparty\face3d\mesh\cython
running build_ext
building 'insightface.thirdparty.face3d.mesh.cython.mesh_core_cython' exte
nsion
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Micr
osoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tool
s/
[end of output]
note: This error originates from a subprocess, and is likely not a problem wit
h pip.
ERROR: Failed building wheel for insightface
Failed to build insightface
ERROR: Could not build wheels for insightface, which is required to install pypr
oject.toml-based projects
Metadata
Metadata
Assignees
Labels
No labels