Почему я получаю ошибку при установке пакета из файла требований в django

Привет всем, я клонировал свой проект django на машине ubuntu (22.04.1 LTS) python версии - 3.8.10 и django версии 2. 2 при установке пакетов с помощью cmd pip install -r requirements.txt после установки некоторых пакетов я получил ошибку, по моему мнению это ошибка mysqlclient

Note-mysql db работает нормально.

пожалуйста, помогите мне.

Ошибка

Collecting mysqlclient==2.0.3
  Using cached mysqlclient-2.0.3.tar.gz (88 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [16 lines of output]
      /bin/sh: 1: mysql_config: not found
      /bin/sh: 1: mariadb_config: not found
      /bin/sh: 1: mysql_config: not found
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-490urkf8/mysqlclient_91ecf52f39004862be75d78177e00bdb/setup.py", line 15, in <module>
          metadata, options = get_config()
        File "/tmp/pip-install-490urkf8/mysqlclient_91ecf52f39004862be75d78177e00bdb/setup_posix.py", line 70, in get_config
          libs = mysql_config("libs")
        File "/tmp/pip-install-490urkf8/mysqlclient_91ecf52f39004862be75d78177e00bdb/setup_posix.py", line 31, in mysql_config
          raise OSError("{} not found".format(_mysql_config_path))
      OSError: mysql_config not found
      mysql_config --version
      mariadb_config --version
      mysql_config --libs
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Либо mysql_config отсутствует в вашем PATH, либо он не установлен.
Попробуйте найти его с помощью which mysql_config и если он найден, добавьте его путь в PATH.
. В противном случае, установите libmysqlclient-dev.
Предполагая, что вы находитесь на Ubuntu, используйте: sudo apt -y install libmysqlclient-dev.
После этого попробуйте установить требования снова.

Меня зовут Георгий ...я новичок, у меня ubunto mint, и я нечаянно сделал hiso...я потом trrminal пропал, нет se abre, нет esta...ademas tengo todo linux a ingles...que aser para que Terminal vuelve a mi escritorio, un saludo /gracias por la ayuda.

Вернуться на верх