@Lancelot1

При установке tgcrypto выдает ошибку, как установить?

C:\Users\Ror>pip install TgCrypto
Collecting TgCrypto
Using cached TgCrypto-1.2.2.tar.gz (37 kB)
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for TgCrypto, since package 'wheel' is not installed.
Installing collected packages: TgCrypto
Running setup.py install for TgCrypto ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Ror\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ror\\AppData\\Local\\Temp\\pip-install-wc212anq\\tgcrypto_be70712c9bfc4b6aa79859d425bdaf7c\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ror\\AppData\\Local\\Temp\\pip-install-wc212anq\\tgcrypto_be70712c9bfc4b6aa79859d425bdaf7c\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Ror\AppData\Local\Temp\pip-record-on8hp4kh\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Ror\AppData\Local\Programs\Python\Python310\Include\TgCrypto'
cwd: C:\Users\Ror\AppData\Local\Temp\pip-install-wc212anq\tgcrypto_be70712c9bfc4b6aa79859d425bdaf7c\
Complete output (21 lines):
running install
C:\Users\Ror\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\tests
copying tests\__init__.py -> build\lib.win-amd64-3.10\tests
creating build\lib.win-amd64-3.10\tests\cbc
copying tests\cbc\test_cbc.py -> build\lib.win-amd64-3.10\tests\cbc
copying tests\cbc\__init__.py -> build\lib.win-amd64-3.10\tests\cbc
creating build\lib.win-amd64-3.10\tests\ctr
copying tests\ctr\test_ctr.py -> build\lib.win-amd64-3.10\tests\ctr
copying tests\ctr\__init__.py -> build\lib.win-amd64-3.10\tests\ctr
creating build\lib.win-amd64-3.10\tests\ige
copying tests\ige\test_ige.py -> build\lib.win-amd64-3.10\tests\ige
copying tests\ige\__init__.py -> build\lib.win-amd64-3.10\tests\ige
running build_ext
building 'tgcrypto' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-buil...
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\Ror\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ror\\AppData\\Local\\Temp\\pip-install-wc212anq\\tgcrypto_be70712c9bfc4b6aa79859d425bdaf7c\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ror\\AppData\\Local\\Temp\\pip-install-wc212anq\\tgcrypto_be70712c9bfc4b6aa79859d425bdaf7c\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Ror\AppData\Local\Temp\pip-record-on8hp4kh\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\Ror\AppData\Local\Programs\Python\Python310\Include\TgCrypto' Check the logs for full command output.

Subleme:
TgCrypto is missing! Pyrogram will work the same, but at a much slower speed. More info: https://docs.pyrogram.org/topics/tgcrypto
Pyrogram v1.2.9, Copyright (C) 2017-2021 Dan

pyrogram и другие установились без проблем
  • Вопрос задан
  • 1204 просмотра
Решения вопроса 1
phaggi
@phaggi
лужу, паяю, ЭВМы починяю
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools":

Может, эта строчка поможет?
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

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

Войти через центр авторизации
Похожие вопросы