FORO:
Estoy dando mis primeros pasos (gateando en realidad) en Python e intentando instalar paquetes de software, por ejemplo PyGobject y me da el error que detallo más abajo que lamentablemente no tengo idea de que está pasando.
Si alguien me da una punta del ovillo se lo agradeceré. (tengo más errores para futuras consultas)
Muchas gracias desde ya.
Horacio
ERROR:
Estoy dando mis primeros pasos (gateando en realidad) en Python e intentando instalar paquetes de software, por ejemplo PyGobject y me da el error que detallo más abajo que lamentablemente no tengo idea de que está pasando.
Si alguien me da una punta del ovillo se lo agradeceré. (tengo más errores para futuras consultas)
Muchas gracias desde ya.
Horacio
ERROR:
Código:
pip install Pygobject
Collecting Pygobject
Using cached https://files.pythonhosted.org/packages/46/8a/b183f3edc812d4d28c8b671a922b5bc2863be5d38c56b3ad9155815e78dd/PyGObject-3.34.0.tar.gz
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\horacio\appdata\local\programs\python\python38-32\python.exe' 'c:\users\horacio\appdata\local\programs\python\python38-32\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\Horacio\AppData\Local\Temp\pip-build-env-68gbuw0n\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo
cwd: None
Complete output (33 lines):
Collecting setuptools
Using cached https://files.pythonhosted.org/packages/54/28/c45d8b54c1339f9644b87663945e54a8503cfef59cf0f65b3ff5dd17cf64/setuptools-42.0.2-py2.py3-none-any.whl
Collecting wheel
Using cached https://files.pythonhosted.org/packages/00/83/b4a77d044e78ad1a45610eb88f745be2fd2c6d658f9798a15e384b7d57c9/wheel-0.33.6-py2.py3-none-any.whl
Collecting pycairo
Using cached https://files.pythonhosted.org/packages/3c/1a/c0478ecab31baae50fda9956547788afbd0ca563adc52c9b03cab30f17eb/pycairo-1.18.2.tar.gz
Installing collected packages: setuptools, wheel, pycairo
Running setup.py install for pycairo: started
Running setup.py install for pycairo: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'c:\users\horacio\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Horacio\\AppData\\Local\\Temp\\pip-install-vnkaxbaj\\pycairo\\setup.py'"'"'; __file__='"'"'C:\\Users\\Horacio\\AppData\\Local\\Temp\\pip-install-vnkaxbaj\\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 'C:\Users\Horacio\AppData\Local\Temp\pip-record-7t5wf9yb\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\Horacio\AppData\Local\Temp\pip-build-env-68gbuw0n\overlay' --compile
cwd: C:\Users\Horacio\AppData\Local\Temp\pip-install-vnkaxbaj\pycairo\
Complete output (18 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\cairo
copying cairo\__init__.py -> build\lib.win32-3.8\cairo
copying cairo\__init__.pyi -> build\lib.win32-3.8\cairo
copying cairo\py.typed -> build\lib.win32-3.8\cairo
running build_ext
building 'cairo._cairo' extension
creating build\temp.win32-3.8
creating build\temp.win32-3.8\Release
creating build\temp.win32-3.8\Release\cairo
C:\Program Files\Microsoft Visual Studio 14.0\VC\BIN\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DPYCAIRO_VERSION_MAJOR=1 -DPYCAIRO_VERSION_MINOR=18 -DPYCAIRO_VERSION_MICRO=2 -Ic:\users\horacio\appdata\local\programs\python\python38-32\include -Ic:\users\horacio\appdata\local\programs\python\python38-32\include "-IC:\Program Files\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files\Windows Kits\8.1\include\shared" "-IC:\Program Files\Windows Kits\8.1\include\um" "-IC:\Program Files\Windows Kits\8.1\include\winrt" /Tccairo/device.c /Fobuild\temp.win32-3.8\Release\cairo/device.obj
device.c
c:\users\horacio\appdata\local\temp\pip-install-vnkaxbaj\pycairo\cairo\pycairo.h(37): fatal error C1083: Cannot open include file: 'cairo.h': No such file or directory
error: command 'C:\\Program Files\\Microsoft Visual Studio 14.0\\VC\\BIN\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\horacio\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Horacio\\AppData\\Local\\Temp\\pip-install-vnkaxbaj\\pycairo\\setup.py'"'"'; __file__='"'"'C:\\Users\\Horacio\\AppData\\Local\\Temp\\pip-install-vnkaxbaj\\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 'C:\Users\Horacio\AppData\Local\Temp\pip-record-7t5wf9yb\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\Horacio\AppData\Local\Temp\pip-build-env-68gbuw0n\overlay' --compile Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\horacio\appdata\local\programs\python\python38-32\python.exe' 'c:\users\horacio\appdata\local\programs\python\python38-32\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\Horacio\AppData\Local\Temp\pip-build-env-68gbuw0n\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel pycairo Check the logs for full command output.
C:\Users\Horacio>