1
resposta

erro ao executar pip install -r requirements.txt

    ERROR: Command errored out with exit status 1:
     command: /home/georgesq/alura/jenkins/1110-aula-inicial/jenkins-todo-list/venv-django-todolist/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-x8k50h9_/mysqlclient/setup.py'"'"'; __file__='"'"'/tmp/pip-install-x8k50h9_/mysqlclient/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
         cwd: /tmp/pip-install-x8k50h9_/mysqlclient/
    Complete output (10 lines):
    /bin/sh: 1: mysql_config: not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-x8k50h9_/mysqlclient/setup.py", line 16, in <module>
        metadata, options = get_config()
      File "/tmp/pip-install-x8k50h9_/mysqlclient/setup_posix.py", line 51, in get_config
        libs = mysql_config("libs")
      File "/tmp/pip-install-x8k50h9_/mysqlclient/setup_posix.py", line 29, in mysql_config
        raise EnvironmentError("%s not found" % (_mysql_config_path,))
    OSError: mysql_config not found
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
1 resposta

Olá, hoiama!

Parece que é um problema na instalação do MySQL.

Chegou a seguir as instruções de instalação do MySQL do início da aula? https://cursos.alura.com.br/course/flask-upload-persistencia-javascript-jquery/task/33493