Closed KumaTea closed 8 months ago
Python 3.12 has released recently.
On systems without an C complier installed, installing TgCrypto will raise an error:
(test) root@docker:/# pip install TgCrypto Collecting TgCrypto Downloading TgCrypto-1.2.5.tar.gz (37 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: TgCrypto Building wheel for TgCrypto (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for TgCrypto (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [22 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-x86_64-cpython-312 creating build/lib.linux-x86_64-cpython-312/tests copying tests/__init__.py -> build/lib.linux-x86_64-cpython-312/tests creating build/lib.linux-x86_64-cpython-312/tests/cbc copying tests/cbc/__init__.py -> build/lib.linux-x86_64-cpython-312/tests/cbc copying tests/cbc/test_cbc.py -> build/lib.linux-x86_64-cpython-312/tests/cbc creating build/lib.linux-x86_64-cpython-312/tests/ige copying tests/ige/test_ige.py -> build/lib.linux-x86_64-cpython-312/tests/ige copying tests/ige/__init__.py -> build/lib.linux-x86_64-cpython-312/tests/ige creating build/lib.linux-x86_64-cpython-312/tests/ctr copying tests/ctr/__init__.py -> build/lib.linux-x86_64-cpython-312/tests/ctr copying tests/ctr/test_ctr.py -> build/lib.linux-x86_64-cpython-312/tests/ctr running build_ext building 'tgcrypto' extension creating build/temp.linux-x86_64-cpython-312 creating build/temp.linux-x86_64-cpython-312/tgcrypto gcc -pthread -B /opt/conda/envs/test/compiler_compat -fno-strict-overflow -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /opt/conda/envs/test/include -fPIC -O2 -isystem /opt/conda/envs/test/include -fPIC -I/opt/conda/envs/test/include/python3.12 -c tgcrypto/aes256.c -o build/temp.linux-x86_64-cpython-312/tgcrypto/aes256.o error: command 'gcc' failed: No such file or directory [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for TgCrypto Failed to build TgCrypto ERROR: Could not build wheels for TgCrypto, which is required to install pyproject.toml-based projects (test) root@docker:/#
I have built some wheels with a development environment, but it would be better to install them directly from PyPI. Thanks.
Python 3.12 has released recently.
On systems without an C complier installed, installing TgCrypto will raise an error:
I have built some wheels with a development environment, but it would be better to install them directly from PyPI. Thanks.