当我尝试在我的windows pc上安装Gphoto2时,我得到一个错误。
我尝试按照https://pypi.org/project/gphoto2/的说明进行安装,并从git克隆https://github.com/jim-easterbrook/python-gphoto2.git下载压缩包,但都没有成功。
此模块应该可以成功安装。
使用PYPI,我尝试遵循并安装此模块,也可以从git https://pypi.org/project/gphoto2/ https://github.com/jim-easterbrook/python-gphoto2.git下载并安装压缩包
我遇到了很大的困难,任何建议或建议都将不胜感激。
C:\Users\Sam\Downloads\python-gphoto2-master\python-gphoto2-master> python setup.py install
ERROR: command "pkg-config --modversion libgphoto2" failed此模块Gphoto2应该安装成功。
这是完整的错误所说的:
C:\Users\Sam\Downloads\python-gphoto2-master\python-gphoto2-master>
python setup.py install ERROR: command "pkg-config --modversion
libgphoto2" failed Traceback (most recent call last): File "setup.py",
line 36, in <module> cmd, stderr=FNULL,
universal_newlines=True).split('.') File
"C:\python27\lib\subprocess.py", line 212, in check_output process =
Popen(stdout=PIPE, *popenargs, **kwargs) Windows: [Error 2] The system cannot find the file specified 发布于 2019-06-27 00:17:39
我是python-gphoto2的作者。
Python-gphoto2不能在Windows上运行。PyPI页面(https://pypi.org/project/gphoto2/)显示了支持的操作系统- MacOS和POSIX兼容(例如Linux)。
我已经能够在MSYS2 (http://www.msys2.org/)中安装它,但除非你让Windows使用libusb而不是普通的摄像头驱动程序,否则它是没有用的。
https://stackoverflow.com/questions/56755706
复制相似问题