缺少VC++的问题
我在安装时遇到了
(D:\conda_envs\facefusion) C:\Users\Administrator>pip install E:\PKG\开发者\py-camera-list-project-master
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple/
Processing e:\pkg\开发者\py-camera-list-project-master
Preparing metadata (setup.py) ... done
Building wheels for collected packages: PyCameraList
Building wheel for PyCameraList (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
E:\PKG\开发者\py-camera-list-project-master\setup.py:11: SyntaxWarning: invalid escape sequence '\c'
Extension("PyCameraList.camera_device", ["PyCameraList\camera_device.pyx"]),
D:\conda_envs\facefusion\Lib\site-packages\setuptools\_distutils\dist.py:261: UserWarning: Unknown distribution option: 'email'
warnings.warn(msg)
running bdist_wheel
running build
running build_py
creating build\lib.win-amd64-cpython-312\PyCameraList
copying PyCameraList\__init__.py -> build\lib.win-amd64-cpython-312\PyCameraList
running build_ext
building 'PyCameraList.camera_device' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
尝试的解决方法:
WindowsCompilers - Python Wiki
我选择最新的windows 10 SDK。
安装完重启。
结果:
pip install E:\PKG\开发者\py-camera-list-project-master
成功