-
-
Notifications
You must be signed in to change notification settings - Fork 838
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install insightface==0.7.3 Build Failure with Python 3.10.6 and Visual Studio #126
Comments
You have to install Insightface inside activated venv, not in Windows directly |
That didn't help nor solve the issue. (venv) S:\Stable Diffusion\stable-diffusion-webui\venv\Scripts>pip install insightface==0.7.3 × Building wheel for insightface (pyproject.toml) did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. [notice] A new release of pip available: 22.2.1 -> 23.1.2 |
I have the same problem here but from a macOS |
tried all the above. still not working :( |
I'm having the same problem. Freshly installed visual studio. It installs fine in the main windows environment(I uninstalled it before continuing), but not in the venv. |
For those on linux (and presumably on macOS) this can usually be solved by installing python3-dev. Debian/Ubuntu:
Fedora/RHEL:
|
Linux users, also make sure you have gcc and g++ installed. For Debian/Ubuntu:
|
Subject: Bug Report: Build Failure with Python 3.10.6 and Visual Studio
Dear GitHub Support Team,
I hope this message finds you well. I am writing to report a bug related to the build process for a Python package, specifically when using Python 3.10.6 along with Visual Studio, including the Python and C++ packages. I have encountered an error while attempting to build the package, and I would appreciate your assistance in resolving this issue.
System Information:
Operating System: Win 10
GPU: RTX 3060 12gb
Python Version: 3.10.6
Visual Studio Version: Visual Studio Professional 2022 17.6.4
Description of the Issue:
When attempting to build the package mentioned above using Python 3.10.6 and Visual Studio, I encountered a build failure. The build process started normally, but it failed to complete successfully, resulting in an error.
Error Message:
Unfortunately, the error message I received does not provide specific details or a traceback. The console output suggests that the build process failed with an exit code of 1. However, I did not receive any further information regarding the cause of the failure.
C:\Users\Holon>pip install insightface==0.7.3
WARNING: Ignoring invalid distribution -ip (c:\users\holon\appdata\local\programs\python\python310\lib\site-packages)
Collecting insightface==0.7.3
Using cached insightface-0.7.3.tar.gz (439 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3) (1.25.0)
Requirement already satisfied: onnx in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3) (1.14.0)
Requirement already satisfied: tqdm in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3) (4.65.0)
Requirement already satisfied: requests in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3) (2.31.0)
Requirement already satisfied: matplotlib in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3) (3.7.1)
Requirement already satisfied: Pillow in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3) (9.5.0)
Requirement already satisfied: scipy in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3) (1.11.1)
Requirement already satisfied: scikit-learn in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3) (1.3.0)
Requirement already satisfied: scikit-image in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3) (0.21.0)
Requirement already satisfied: easydict in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3) (1.10)
Requirement already satisfied: cython in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3) (3.0.0b1)
Requirement already satisfied: albumentations in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3) (1.3.1)
Requirement already satisfied: prettytable in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from insightface==0.7.3) (3.8.0)
Requirement already satisfied: PyYAML in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from albumentations->insightface==0.7.3) (6.0)
Requirement already satisfied: qudida>=0.0.4 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from albumentations->insightface==0.7.3) (0.0.4)
Requirement already satisfied: opencv-python-headless>=4.1.1 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from albumentations->insightface==0.7.3) (4.7.0.72)
Requirement already satisfied: networkx>=2.8 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from scikit-image->insightface==0.7.3) (3.0)
Requirement already satisfied: imageio>=2.27 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from scikit-image->insightface==0.7.3) (2.31.1)
Requirement already satisfied: tifffile>=2022.8.12 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from scikit-image->insightface==0.7.3) (2023.4.12)
Requirement already satisfied: PyWavelets>=1.1.1 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from scikit-image->insightface==0.7.3) (1.4.1)
Requirement already satisfied: packaging>=21 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from scikit-image->insightface==0.7.3) (23.0)
Requirement already satisfied: lazy_loader>=0.2 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from scikit-image->insightface==0.7.3) (0.2)
Requirement already satisfied: contourpy>=1.0.1 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->insightface==0.7.3) (1.0.7)
Requirement already satisfied: cycler>=0.10 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->insightface==0.7.3) (0.11.0)
Requirement already satisfied: fonttools>=4.22.0 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->insightface==0.7.3) (4.39.0)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->insightface==0.7.3) (1.4.4)
Requirement already satisfied: pyparsing>=2.3.1 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->insightface==0.7.3) (3.0.7)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from matplotlib->insightface==0.7.3) (2.8.2)
Requirement already satisfied: protobuf>=3.20.2 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from onnx->insightface==0.7.3) (4.23.3)
Requirement already satisfied: typing-extensions>=3.6.2.1 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from onnx->insightface==0.7.3) (4.6.3)
Requirement already satisfied: wcwidth in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from prettytable->insightface==0.7.3) (0.2.6)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from requests->insightface==0.7.3) (3.1.0)
Requirement already satisfied: idna<4,>=2.5 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from requests->insightface==0.7.3) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from requests->insightface==0.7.3) (1.26.15)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from requests->insightface==0.7.3) (2022.12.7)
Requirement already satisfied: joblib>=1.1.1 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from scikit-learn->insightface==0.7.3) (1.2.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from scikit-learn->insightface==0.7.3) (3.0.0)
Requirement already satisfied: colorama in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from tqdm->insightface==0.7.3) (0.4.6)
Requirement already satisfied: six>=1.5 in c:\users\holon\appdata\local\programs\python\python310\lib\site-packages (from python-dateutil>=2.7->matplotlib->insightface==0.7.3) (1.15.0)
Building wheels for collected packages: insightface
Building wheel for insightface (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for insightface (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [224 lines of output]
WARNING: pandoc not enabled
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\insightface
copying insightface_init_.py -> build\lib.win-amd64-cpython-310\insightface
creating build\lib.win-amd64-cpython-310\insightface\app
copying insightface\app\common.py -> build\lib.win-amd64-cpython-310\insightface\app
copying insightface\app\face_analysis.py -> build\lib.win-amd64-cpython-310\insightface\app
copying insightface\app\mask_renderer.py -> build\lib.win-amd64-cpython-310\insightface\app
copying insightface\app_init_.py -> build\lib.win-amd64-cpython-310\insightface\app
creating build\lib.win-amd64-cpython-310\insightface\commands
copying insightface\commands\insightface_cli.py -> build\lib.win-amd64-cpython-310\insightface\commands
copying insightface\commands\model_download.py -> build\lib.win-amd64-cpython-310\insightface\commands
copying insightface\commands\rec_add_mask_param.py -> build\lib.win-amd64-cpython-310\insightface\commands
copying insightface\commands_init_.py -> build\lib.win-amd64-cpython-310\insightface\commands
creating build\lib.win-amd64-cpython-310\insightface\data
copying insightface\data\image.py -> build\lib.win-amd64-cpython-310\insightface\data
copying insightface\data\pickle_object.py -> build\lib.win-amd64-cpython-310\insightface\data
copying insightface\data\rec_builder.py -> build\lib.win-amd64-cpython-310\insightface\data
copying insightface\data_init_.py -> build\lib.win-amd64-cpython-310\insightface\data
creating build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\arcface_onnx.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\attribute.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\inswapper.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\landmark.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\model_store.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\model_zoo.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\retinaface.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo\scrfd.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
copying insightface\model_zoo_init_.py -> build\lib.win-amd64-cpython-310\insightface\model_zoo
creating build\lib.win-amd64-cpython-310\insightface\thirdparty
copying insightface\thirdparty_init_.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty
creating build\lib.win-amd64-cpython-310\insightface\utils
copying insightface\utils\constant.py -> build\lib.win-amd64-cpython-310\insightface\utils
copying insightface\utils\download.py -> build\lib.win-amd64-cpython-310\insightface\utils
copying insightface\utils\face_align.py -> build\lib.win-amd64-cpython-310\insightface\utils
copying insightface\utils\filesystem.py -> build\lib.win-amd64-cpython-310\insightface\utils
copying insightface\utils\storage.py -> build\lib.win-amd64-cpython-310\insightface\utils
copying insightface\utils\transform.py -> build\lib.win-amd64-cpython-310\insightface\utils
copying insightface\utils_init_.py -> build\lib.win-amd64-cpython-310\insightface\utils
creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d
copying insightface\thirdparty\face3d_init_.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d
creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\io.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\light.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\render.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\transform.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh\vis.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
copying insightface\thirdparty\face3d\mesh_init_.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh
creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\io.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\light.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\render.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\transform.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy\vis.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
copying insightface\thirdparty\face3d\mesh_numpy_init_.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\mesh_numpy
creating build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model\fit.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model\load.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model\morphabel_model.py -> build\lib.win-amd64-cpython-310\insightface\thirdparty\face3d\morphable_model
copying insightface\thirdparty\face3d\morphable_model_init_.py -> build\lib.win-amd64-cpython-310\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\Holon\AppData\Local\Temp\pip-build-env-y4fuxobp\overlay\Lib\site-packages\setuptools\command\build_py.py:201: _Warning: Package 'insightface.thirdparty.face3d.mesh.cython' is absent from the
packages
configuration.!!
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for insightface
Failed to build insightface
ERROR: Could not build wheels for insightface, which is required to install pyproject.toml-based projects
Additional Notes:
I have successfully built and installed other Python packages using the same Python and Visual Studio versions, so it appears to be specific to this package.
I have checked the package's documentation and GitHub repository for any known issues or compatibility problems with Python 3.10.6, but I could not find any relevant information.
The text was updated successfully, but these errors were encountered: