I am using Python version 3.7.
After I run the command it tried to install some modules but the build was unsuccessful.
Here's the output screen:
Obtaining file:///home/tuhin/Documents/language-statistics
Collecting pycairo>=1.19.1
Downloading pycairo-1.19.1.tar.gz (205 kB)
|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ| 205 kB 274 kB/s
Collecting Pillow>=4.1.1
Downloading Pillow-7.2.0-cp37-cp37m-manylinux1_x86_64.whl (2.2 MB)
|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ| 2.2 MB 70 kB/s
Collecting PyYAML>=5.3.1
Downloading PyYAML-5.3.1.tar.gz (269 kB)
|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ| 269 kB 54 kB/s
Building wheels for collected packages: pycairo, PyYAML
Building wheel for pycairo (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/tuhin/Documents/language-statistics/language_stats/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-30muir4u/pycairo/setup.py'"'"'; __file__='"'"'/tmp/pip-install-30muir4u/pycairo/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-ew3dg1mz
cwd: /tmp/pip-install-30muir4u/pycairo/
Complete output (15 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/cairo
copying cairo/__init__.py -> build/lib.linux-x86_64-3.7/cairo
copying cairo/__init__.pyi -> build/lib.linux-x86_64-3.7/cairo
copying cairo/py.typed -> build/lib.linux-x86_64-3.7/cairo
running build_ext
Package cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo' found
Command '['pkg-config', '--print-errors', '--exists', 'cairo >= 1.13.1']' returned non-zero exit status 1.
----------------------------------------
ERROR: Failed building wheel for pycairo
Running setup.py clean for pycairo
Building wheel for PyYAML (setup.py) ... done
Created wheel for PyYAML: filename=PyYAML-5.3.1-cp37-cp37m-linux_x86_64.whl size=44619 sha256=36e1a10260ce0d9f01264297916d6a237e6c6856f879d05606fcfdd4b368bc2a
Stored in directory: /home/tuhin/.cache/pip/wheels/5e/03/1e/e1e954795d6f35dfc7b637fe2277bff021303bd9570ecea653
Successfully built PyYAML
Failed to build pycairo
Installing collected packages: pycairo, Pillow, PyYAML, language-statistics
Running setup.py install for pycairo ... error
ERROR: Command errored out with exit status 1:
command: /home/tuhin/Documents/language-statistics/language_stats/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-30muir4u/pycairo/setup.py'"'"'; __file__='"'"'/tmp/pip-install-30muir4u/pycairo/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-3rrl1kes/install-record.txt --single-version-externally-managed --compile --install-headers /home/tuhin/Documents/language-statistics/language_stats/include/site/python3.7/pycairo
cwd: /tmp/pip-install-30muir4u/pycairo/
Complete output (15 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/cairo
copying cairo/__init__.py -> build/lib.linux-x86_64-3.7/cairo
copying cairo/__init__.pyi -> build/lib.linux-x86_64-3.7/cairo
copying cairo/py.typed -> build/lib.linux-x86_64-3.7/cairo
running build_ext
Package cairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo' found
Command '['pkg-config', '--print-errors', '--exists', 'cairo >= 1.13.1']' returned non-zero exit status 1.
----------------------------------------
ERROR: Command errored out with exit status 1: /home/tuhin/Documents/language-statistics/language_stats/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-30muir4u/pycairo/setup.py'"'"'; __file__='"'"'/tmp/pip-install-30muir4u/pycairo/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-3rrl1kes/install-record.txt --single-version-externally-managed --compile --install-headers /home/tuhin/Documents/language-statistics/language_stats/include/site/python3.7/pycairo Check the logs for full command output.
For this reason, I failed to use the code, it would be better if you provide an easy way to use the code, just using Python filename.py --some args