在Windows

时间:2018-05-29 12:20:28

标签: windows-10 python-3.6

当我尝试安装它时,会出现一些错误消息:

pip install py3exiv2 收集py3exiv2   正在下载https://files.pythonhosted.org/packages/b3/56/52cc6757f24d828e9db35e8f24091ac1529471dd8c16b532925f4d89f0ca/py3exiv2-0.3.0.tar.gz 安装收集的软件包:py3exiv2   运行py3exiv2的setup.py安装...错误     从命令c完成输出:\ users \ nagasia.desktop-4proa3l \ appdata \ local \ programs \ python \ python36-32 \ python.exe -u -c“import setuptools,tokenize; file =' C:\ Users \ NAGASI~1.DES \ AppData \ Local \ Temp \ pip-install-sgx1rihl \ py3exiv2 \ setup.py'; f = getattr(tokenize,'open',open)(文件); code = f.read()。replace('\ r \ n','\ n'); f.close(); exec(编译,代码,文件,'exec' ))“install --record C:\ Users \ NAGASI~1.DES \ AppData \ Local \ Temp \ pip-record-isqztm52 \ install-record.txt --single-version-external-managed --compile:     发现:modificador no v lido     发现:modificador no v lido     发现:modificador no v lido     运行安装     运行构建     运行build_py     创建构建     创建build \ lib.win32-3.6     创建build \ lib.win32-3.6 \ pyexiv2     复制src \ pyexiv2 \ exif.py - >建立\ lib.win32-3.6 \ pyexiv2     复制src \ pyexiv2 \ iptc.py - >建立\ lib.win32-3.6 \ pyexiv2     复制src \ pyexiv2 \ metadata.py - >建立\ lib.win32-3.6 \ pyexiv2     复制src \ pyexiv2 \ preview.py - >建立\ lib.win32-3.6 \ pyexiv2     复制src \ pyexiv2 \ utils.py - >建立\ lib.win32-3.6 \ pyexiv2     复制src \ pyexiv2 \ xmp.py - >建立\ lib.win32-3.6 \ pyexiv2     复制src \ pyexiv2__init __。py - >建立\ lib.win32-3.6 \ pyexiv2     运行build_ext     构建'libexiv2python'扩展     创建build \ temp.win32-3.6     创建build \ temp.win32-3.6 \ Release     创建build \ temp.win32-3.6 \ Release \ src     C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC \ BIN \ cl.exe / c / nologo / Ox / W3 / GL / DNDEBUG / MD -Ic:\ users \ nagasia.desktop-4proa3l \ appdata \ local \ programs \ python \ python36-32 \ include -Ic:\ users \ nagasia.desktop-4proa3l \ appdata \ local \ programs \ python \ python36-32 \ include“-IC:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC \ INCLUDE“” - IC:\ Program Files(x86)\ Windows Kits \ 10 \ include \ 10.0.10240.0 \ ucrt“” - IC:\ Program Files(x86)\ Windows Kits \ 8.1 \ include \ shared“” -IC:\ Program Files(x86)\ Windows Kits \ 8.1 \ include \ um“” - IC:\ Program Files(x86)\ Windows Kits \ 8.1 \ include \ winrt“/ EHsc /Tpsrc/exiv2wrapper.cpp / Fobuild \ temp.win32-3.6 \ Release \ src / exiv2wrapper.obj -g     cl:命令行警告D9002:忽略未知选项'-g'     exiv2wrapper.cpp     c:\ users \ nagasia.desktop-4proa3l \ appdata \ local \ temp \ pip-install-sgx1rihl \ py3exiv2 \ src \ exiv2wrapper.hpp(32):致命错误C1083:无法打开包含文件:'exiv2 / image.hpp' : 没有相应的文件和目录     错误:命令'C:\ Program Files(x86)\ Microsoft Visual Studio 14.0 \ VC \ BIN \ cl.exe'失败,退出状态为2

----------------------------------------

命令“c:\ users \ nagasia.desktop-4proa3l \ appdata \ local \ programs \ python \ python36-32 \ python.exe -u -c”import setuptools,tokenize; file = 'C:\ Users \ NAGASI~1.DES \ AppData \ Local \ Temp \ pip-install-sgx1rihl \ py3exiv2 \ setup.py'; f = getattr(tokenize,'open',open)( file ); code = f.read()。replace('\ r \ n','\ n'); f.close(); exec(编译(代码,文件,'exec) '))“install --record C:\ Users \ NAGASI~1.DES \ AppData \ Local \ Temp \ pip-record-isqztm52 \ install-record.txt --single-version-external-managed --compile”failed错误代码1在C:\ Users \ NAGASI~1.DES \ AppData \ Local \ Temp \ pip-install-sgx1rihl \ py3exiv2 \

我该怎么办? 感谢

1 个答案:

答案 0 :(得分:0)

您正在尝试使用VisualC ++编译代码,但代码是针对Linux环境配置的,需要Gnu编译器。

由于需要大量的知识来调整和重新配置代码,我建议您使用适用于Windows 10的可立即运行的模块,例如: G。 piexif