# Error: mysqlclinet install Please Help me

**URL:** <https://forum.codewithmosh.com/t/error-mysqlclinet-install-please-help-me/11243>\
**Category:** Django\
**Created:** [March 13, 2022, 3:30pm UTC](https://forum.codewithmosh.com/t/error-mysqlclinet-install-please-help-me/11243 "2022-03-13T15:30:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![si\_thu\_khant](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@si\_thu\_khant](https://forum.codewithmosh.com/u/si_thu_khant)\
**Post date:** [March 13, 2022, 3:30pm UTC](https://forum.codewithmosh.com/t/error-mysqlclinet-install-please-help-me/11243/1 "2022-03-13T15:30:29Z")

</div>

```auto

```

```auto
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
Installing mysqlclient...
Error: An error occurred while installing mysqlclient!
Error text: Collecting mysqlclient
  Using cached mysqlclient-2.1.0.tar.gz (87 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'

  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [16 lines of output]
      /bin/sh: mysql_config: command not found
      /bin/sh: mariadb_config: command not found
      /bin/sh: mysql_config: command not found
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/_c/3x08c65d7gl4gv3jgfmwl7c00000gn/T/pip-install-s7oqc06_/mysqlclient_621a2c3708c74a0d8a8a502bbb91ca71/setup.py", line 15, in <module>
          metadata, options = get_config()
        File "/private/var/folders/_c/3x08c65d7gl4gv3jgfmwl7c00000gn/T/pip-install-s7oqc06_/mysqlclient_621a2c3708c74a0d8a8a502bbb91ca71/setup_posix.py", line 70, in get_config
          libs = mysql_config("libs")
        File "/private/var/folders/_c/3x08c65d7gl4gv3jgfmwl7c00000gn/T/pip-install-s7oqc06_/mysqlclient_621a2c3708c74a0d8a8a502bbb91ca71/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.

✘ Installation Failed
``

```

```nohighlight

```

---

<div class="post-metadata">

**Author:** ![Viktrix](https://avatars.discourse-cdn.com/v4/letter/v/b3f665/32.png) [@Viktrix](https://forum.codewithmosh.com/u/Viktrix)\
**Post date:** [March 17, 2022, 8:36am UTC](https://forum.codewithmosh.com/t/error-mysqlclinet-install-please-help-me/11243/2 "2022-03-17T08:36:37Z")

</div>

What os are you using?

---

<div class="post-metadata">

**Author:** ![si\_thu\_khant](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@si\_thu\_khant](https://forum.codewithmosh.com/u/si_thu_khant)\
**Post date:** [March 17, 2022, 2:19pm UTC](https://forum.codewithmosh.com/t/error-mysqlclinet-install-please-help-me/11243/3 "2022-03-17T14:19:56Z")

</div>

M1 mac and now I have been fixed that error. That was because MySQL is not the right path.

---

<div class="post-metadata">

**Author:** ![captainyaptin](https://avatars.discourse-cdn.com/v4/letter/c/ed8c4c/32.png) [@captainyaptin](https://forum.codewithmosh.com/u/captainyaptin)\
**Post date:** [March 18, 2022, 8:19am UTC](https://forum.codewithmosh.com/t/error-mysqlclinet-install-please-help-me/11243/4 "2022-03-18T08:19:29Z")

</div>

I’m having the same problem. How did you fix it?

---

<div class="post-metadata">

**Author:** ![si\_thu\_khant](https://avatars.discourse-cdn.com/v4/letter/s/eb9ed0/32.png) [@si\_thu\_khant](https://forum.codewithmosh.com/u/si_thu_khant)\
**Post date:** [March 18, 2022, 9:31am UTC](https://forum.codewithmosh.com/t/error-mysqlclinet-install-please-help-me/11243/5 "2022-03-18T09:31:48Z")

</div>

Yes, watch this tutorial. It contains solutions 1 and 2. Solution 2 fixed that error.

[![](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/7/79da6d04681c1824138d2953c8b56f7f01e5dd48.jpeg "Install MySQL 8.0.28 Database on MacOS Big Sur [Step-by-Step Tutorial]") ](https://www.youtube.com/watch?v=CBtBZgmP22M)
