L
L
Lancelot12021-11-16 16:59:35
pip
Lancelot1, 2021-11-16 16:59:35

When installing tgcrypto gives an error, how to install?

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'"
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
.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'"'"', '

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 and others installed without problems

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alan Gibizov, 2021-11-16
@Lancelot1

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools":

Maybe this line will help?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question