pip install을 사용한 mariadb 설치 문제
python으로 디스커치봇을 쓰고 있는데 pterodactyl을 사용하여 vps에서 호스팅하고 싶습니다.유일한 문제는 이 시스템을 실행할 수 없다는 것입니다.mariadb모듈.
인스톨시에mariadb~=1.0.9필요조건으로부터.txt 콘솔에 다음 오류가 나타납니다.
Collecting mariadb~=1.0.9
Using cached mariadb-1.0.9.zip (85 kB)
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-5af1rjco/mariadb_79202a8d2ec6465081f14415b6232796/setup.py'"'"'; __file__='"'"'/tmp/pip-install-5af1rjco/mariadb_79202a8d2ec6465081f14415b6232796/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'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-t7yd4lwb
cwd: /tmp/pip-install-5af1rjco/mariadb_79202a8d2ec6465081f14415b6232796/
Complete output (17 lines):
/bin/sh: 1: mariadb_config: not found
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-5af1rjco/mariadb_79202a8d2ec6465081f14415b6232796/setup.py", line 26, in <module>
cfg = get_config(options)
File "/tmp/pip-install-5af1rjco/mariadb_79202a8d2ec6465081f14415b6232796/mariadb_posix.py", line 59, in get_config
cc_version = mariadb_config(config_prg, "cc_version")
File "/tmp/pip-install-5af1rjco/mariadb_79202a8d2ec6465081f14415b6232796/mariadb_posix.py", line 28, in mariadb_config
raise EnvironmentError(
OSError: mariadb_config not found.
Please make sure, that MariaDB Connector/C is installed on your system.
Either set the environment variable MARIADB_CONFIG or edit the configuration
file 'site.cfg' and set the 'mariadb_config option, which should point
to the mariadb_config utility.
The MariaDB Download website at <https://downloads.mariadb.com/Connectors/c/>
provides latest stable releease of Connector/C.
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/e4/b0/0fa0bf67c347464e04c970e406e6d4b0eea0b76c9aff6111c85708950cfc/mariadb-1.0.9.zip#sha256=02a9b3d0a076e9a0d0ea1c48b45ed09b6475e2b6a4e8c81ed9f1e82caf3bfc29 (from https://pypi.org/simple/mariadb/) (requires-python:>=3.6). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement mariadb~=1.0.9 (from versions: 0.9.52, 0.9.53, 0.9.54, 0.9.55, 0.9.56, 0.9.57, 0.9.58, 0.9.59, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.1.0a1, 1.1.0b1, 1.1.0b2)
ERROR: No matching distribution found for mariadb~=1.0.9
다른 유사한 질문을 보고 설치했습니다.
MariaDB Connector/C. 이는 의존관계입니다.
sudo apt-get install libmariadb3 libmariadb-dev
PIP를 사용하여 MariaDB 커넥터/Python을 설치합니다.
pip3 install mariadb
제가 보면서mariadb폴더에 인스톨 되어 있습니다./usr/local/lib/python3.8/dist-packages단, 의 disconsord-bot 서버 위치에 있습니다. /var/lib/pterodactyl/volumes/0a4e3290-1f7f-4b2a-8754-02402baef643/.local/lib/python3.10/site-packages mariadb모듈이 없습니다.
이 답변으로 해결하려고 노력했지만 아무것도 하지 않았다.
pip install mariadb 문제 - mariadb_config를 찾을 수 없습니다.
Python MariaDB pip 설치에 실패하여 mariadb_config가 누락되었습니다.
mariadb 10 Ubuntu 13.10의 mysqldb python 인터페이스를 설치할 때 mysql_config를 찾을 수 없습니다.
ubuntu 버전 20.04
언급URL : https://stackoverflow.com/questions/70633586/problem-with-installing-mariadb-using-pip-install
'source' 카테고리의 다른 글
| Java에서 사용되지 않는 가져오기 경고 억제 (0) | 2022.12.11 |
|---|---|
| WordPress 쿼리 슬러그별 한 포스트 (0) | 2022.12.11 |
| 문자열이 PHP에서 base64인지 확인하는 방법 (0) | 2022.12.01 |
| C에서 텍스트 파일을 읽고 모든 문자열을 인쇄하려면 어떻게 해야 합니까? (0) | 2022.12.01 |
| 특정 패키지 노드 업데이트 (0) | 2022.12.01 |