Задать вопрос
@punkochel

Как исправить ошибку установки пакета eel (Python)?

Ошибка при установке пакета eel через команду в командной строке: pip install eel.
Вообще не могу установить ни один пакет, уже переустановил все пакеты Visual C++, версию pip и даже сам Python.
До этого пользовался только компилятором mingw (говорят что может в нем быть причина ошибки.

Сама ошибка:
ERROR: Command errored out with exit status 1:
command: 'c:\users\punko\appdata\local\programs\python\python39\python.exe' 'c:\users\punko\appdata\local\programs\python\python39\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\punko\AppData\Local\Temp\pip-build-env-881nuxfi\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 40.8.0' wheel 'Cython >= 3.0a5' 'cffi >= 1.12.3 ; platform_python_implementation == '"'"'CPython'"'"'' 'greenlet >= 0.4.17 ; platform_python_implementation == '"'"'CPython'"'"''
cwd: None
Complete output (33 lines):
Collecting setuptools>=40.8.0
Using cached setuptools-50.3.0-py3-none-any.whl (785 kB)
Collecting wheel
Using cached wheel-0.35.1-py2.py3-none-any.whl (33 kB)
Collecting Cython>=3.0a5
Using cached Cython-3.0a6-py2.py3-none-any.whl (1.0 MB)
Collecting cffi>=1.12.3
Using cached cffi-1.14.3-cp39-cp39-win_amd64.whl (179 kB)
Collecting greenlet>=0.4.17
Using cached greenlet-0.4.17.tar.gz (61 kB)
Collecting pycparser
Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Using legacy 'setup.py install' for greenlet, since package 'wheel' is not installed.
Installing collected packages: setuptools, wheel, Cython, pycparser, cffi, greenlet
Running setup.py install for greenlet: started
Running setup.py install for greenlet: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'c:\users\punko\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\punko\\AppData\\Local\\Temp\\pip-install-tystk9hm\\greenlet\\setup.py'"'"'; __file__='"'"'C:\\Users\\punko\\AppData\\Local\\Temp\\pip-install-tystk9hm\\greenlet\\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\punko\AppData\Local\Temp\pip-record-y9jl407n\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\punko\AppData\Local\Temp\pip-build-env-881nuxfi\overlay' --compile --install-headers 'C:\Users\punko\AppData\Local\Temp\pip-build-env-881nuxfi\overlay\Include\greenlet'
cwd: C:\Users\punko\AppData\Local\Temp\pip-install-tystk9hm\greenlet\
Complete output (11 lines):
running install
running build
running build_ext
building 'greenlet' extension
creating build
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\punko\appdata\local\programs\python\python39\include -Ic:\users\punko\appdata\local\programs\python\python39\include -ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE -ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE -IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt /Tcgreenlet.c /Fobuild\temp.win-amd64-3.9\Release\greenlet.obj
greenlet.c
c:\users\punko\appdata\local\programs\python\python39\include\pyconfig.h(201): fatal error C1083: ЌҐ г¤ Ґвбп ®вЄалвм д ©« ўЄ«о祭ЁҐ: basetsd.h: No such file or directory,
error: command 'D:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\punko\appdata\local\programs\python\python39\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\punko\\AppData\\Local\\Temp\\pip-install-tystk9hm\\greenlet\\setup.py'"'"'; __file__='"'"'C:\\Users\\punko\\AppData\\Local\\Temp\\pip-install-tystk9hm\\greenlet\\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\punko\AppData\Local\Temp\pip-record-y9jl407n\install-record.txt' --single-version-externally-managed --prefix 'C:\Users\punko\AppData\Local\Temp\pip-build-env-881nuxfi\overlay' --compile --install-headers 'C:\Users\punko\AppData\Local\Temp\pip-build-env-881nuxfi\overlay\Include\greenlet' Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\punko\appdata\local\programs\python\python39\python.exe' 'c:\users\punko\appdata\local\programs\python\python39\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\punko\AppData\Local\Temp\pip-build-env-881nuxfi\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools >= 40.8.0' wheel 'Cython >= 3.0a5' 'cffi >= 1.12.3 ; platform_python_implementation == '"'"'CPython'"'"'' 'greenlet >= 0.4.17 ; platform_python_implementation == '"'"'CPython'"'"'' Check the logs for full command output.
  • Вопрос задан
  • 2671 просмотр
Подписаться 1 Простой Комментировать
Решения вопроса 1
Viktor_T2
@Viktor_T2
python developer
Ставьте python 3.8 а еще лучше 3.7
3.9 только из беты вышел недавно - слишком новый
Ответ написан
Пригласить эксперта
Ответы на вопрос 1
@Andy_U
Проверил установку в чистый virtual environment:

См. протокол установки...

Microsoft Windows [Version 10.0.16299.2107]
(c) 2017 Microsoft Corporation. All rights reserved.

(.venv390) D:\Documents\PycharmProjects\tst39>pip install eel
Collecting eel
  Downloading Eel-0.14.0.tar.gz (17 kB)
Collecting bottle
  Downloading bottle-0.12.18-py3-none-any.whl (89 kB)
     |████████████████████████████████| 89 kB 654 kB/s
Collecting bottle-websocket
  Downloading bottle-websocket-0.2.9.tar.gz (2.0 kB)
Collecting future
  Downloading future-0.18.2.tar.gz (829 kB)
     |████████████████████████████████| 829 kB 1.1 MB/s
Collecting pyparsing
  Using cached pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
Collecting whichcraft
  Downloading whichcraft-0.6.1-py2.py3-none-any.whl (5.2 kB)
Collecting gevent-websocket
  Downloading gevent_websocket-0.10.1-py3-none-any.whl (22 kB)
Collecting gevent
  Downloading gevent-20.9.0.tar.gz (5.8 MB)
     |████████████████████████████████| 5.8 MB 819 kB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
    Preparing wheel metadata ... done
Requirement already satisfied: setuptools in d:\documents\pycharmprojects\tst39\.venv390\lib\site-packages (from gevent->gevent-websocket->bottle-websocket->eel) (50.3.0)
Collecting zope.event
  Downloading zope.event-4.5.0-py2.py3-none-any.whl (6.8 kB)
Processing c:\users\ushakovay\appdata\local\pip\cache\wheels\9d\57\c1\e801430741639b9be449a6643c8be3210d68f066446504cb5f\greenlet-0.4.17-cp39-cp39-win_amd64.whl
Collecting zope.interface
  Downloading zope.interface-5.1.2.tar.gz (228 kB)
     |████████████████████████████████| 228 kB 1.1 MB/s
Collecting cffi>=1.12.2; platform_python_implementation == "CPython" and sys_platform == "win32"
  Using cached cffi-1.14.3-cp39-cp39-win_amd64.whl (179 kB)
Collecting pycparser
  Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Building wheels for collected packages: eel, bottle-websocket, future, gevent, zope.interface
  Building wheel for eel (setup.py) ... done
  Created wheel for eel: filename=Eel-0.14.0-py3-none-any.whl size=17466 sha256=4138700b941ca6c1c90d2c0017d5f6515ccfb2e42139adb5b9a70d5c7e8b3823
  Stored in directory: c:\users\ushakovay\appdata\local\pip\cache\wheels\f1\c2\5c\5f6bc6e4a71a5ea3c3d9b46f832e1ca0a2a66d229c4efb13c9
  Building wheel for bottle-websocket (setup.py) ... done
  Created wheel for bottle-websocket: filename=bottle_websocket-0.2.9-py3-none-any.whl size=2353 sha256=aef67a2df8581f132c1cbc63771a8da1c73812f6c406e20ae1f4230b3781ebc9
  Stored in directory: c:\users\ushakovay\appdata\local\pip\cache\wheels\3f\03\89\b62449b34a0c944daa3c7ae993e2d9a97096b22a2c9d4bd49b
  Building wheel for future (setup.py) ... done
  Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491062 sha256=55bee94514979181f6a5512d6ffc973cbbc7896efbff5d1693ffe6b7ddddc3eb
  Stored in directory: c:\users\ushakovay\appdata\local\pip\cache\wheels\2f\a0\d3\4030d9f80e6b3be787f19fc911b8e7aa462986a40ab1e4bb94
  Building wheel for gevent (PEP 517) ... done
  Created wheel for gevent: filename=gevent-20.9.0-cp39-cp39-win_amd64.whl size=1524182 sha256=3b0ccdb92c72d0bda1d34dacd23e101f3f2486677e97c7a0b1cb9368c124e1f7
  Stored in directory: c:\users\ushakovay\appdata\local\pip\cache\wheels\1f\44\09\99f12f4be61863aaacf1bd866310ee44d2d884e22565b211a0
  Building wheel for zope.interface (setup.py) ... done
  Created wheel for zope.interface: filename=zope.interface-5.1.2-cp39-cp39-win_amd64.whl size=195684 sha256=109fe4bb38647db6abbcf8a064ba85b719200e84a945870ab9c3fa9715d04463
  Stored in directory: c:\users\ushakovay\appdata\local\pip\cache\wheels\9e\2c\c3\6410c8350e1f3683cd8e1eb85b0c1b906061eea437477c89cf
Successfully built eel bottle-websocket future gevent zope.interface
Installing collected packages: bottle, zope.event, greenlet, zope.interface, pycparser, cffi, gevent, gevent-websocket, bottle-websocket, future, pyparsing, whichcraft, eel
Successfully installed bottle-0.12.18 bottle-websocket-0.2.9 cffi-1.14.3 eel-0.14.0 future-0.18.2 gevent-20.9.0 gevent-websocket-0.10.1 greenlet-0.4.17 pycparser-2.20 pyparsing-2.4.7 whichcraft-0.6.1 zope.event-4.5.0 zope.interface-5.1.2

(.venv390) D:\Documents\PycharmProjects\tst39>


Никаких проблем... Единственно, что у меня стоит Visual Studio Build Tools 2019 16.2.29215.179 (год назад ставил).

P.S. Вдогонку, у меня отсутствующий у вас файл basetsd.h находится в катологе C:\Program Files (x86)\Windows Kits\10\Include\10.0.18362.0\shared.
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы