fpng-python
fpng-python copied to clipboard
Error during installation/compilation.
Hi!
I found your python implementation of fpng, and I really want to use it in a project where I have to encode a lot of png images for a video stream. I can only use png images, so i'm stuck with cv2.imencode.
Sadly, I have little to no experience in C++ and I have failed trying to install fpng-python. I installed Visual Studio Build Tools 2019, and clone this repo exactly as said in the Readme, but when running python setup.py install
, I get the following error:
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: 'C:\\Program Files\\WindowsApps\\PythonSoftwareFoundation.Python.3.10_3.10.1520.0_x64__qbz5n2kfra8p0\\Lib\\site-packages\\test-easy-install-1792.write-test'
Then, I try running python setup.py install --user
, and the installation starts, but I get another error (I have my computer in Spanish):
cl : Command-Line Warning D9002 : ignoring unknown option '-fno-strict-aliasing'
fpng.cpp
C:\Users\pcast\fpng-python\fpng\src\fpng.h(4): fatal error C1083: Cannot open filetype file: 'stdlib.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
I would really appreciate any help, Pablo