【python】Failed building wheel for libtiff 解决办法

报错:

Command "e:\anaconda3\envs\py36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\gong\\AppData\\Local\\Temp\\pip-install-odkmtqyi\\libtiff\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\gong\AppData\Local\Temp\pip-record-yh6m4xg0\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\gong\AppData\Local\Temp\pip-install-odkmtqyi\libtiff\

参考:https://www.jianshu.com/p/c902c66c02ac

https://blog.csdn.net/amoscn/article/details/78215641

官网手动下载Pylibtiff:https://www.lfd.uci.edu/~gohlke/pythonlibs/#pylibtiff

其中,cpxx表示python版本,win32和win_amd64表示32位或者64位操作系统

【python】Failed building wheel for libtiff 解决办法_第1张图片

下载后,命令行输入如下命令:

你可能感兴趣的:(Python函数)