# How to fix mysqlclient error?

**URL:** <https://forum.codewithmosh.com/t/how-to-fix-mysqlclient-error/17837>\
**Category:** Django\
**Created:** [January 21, 2023, 5:12pm UTC](https://forum.codewithmosh.com/t/how-to-fix-mysqlclient-error/17837 "2023-01-21T17:12:54Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![sabhack](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@sabhack](https://forum.codewithmosh.com/u/sabhack)\
**Post date:** [February 4, 2023, 1:42pm UTC](https://forum.codewithmosh.com/t/how-to-fix-mysqlclient-error/17837/3 "2023-02-04T13:42:20Z")

</div>

The error is due to your ~/.bashrc or ~/.zshrc file doesn’t have django path properly point.  
It took me 3 days to fix the error after several searching here and there

1. Add django to your path. open python, `import django`, then run `django` to see django’s path. then add it to your `~/.bashrc` (or `~/.zshrc` if you’re using `zsh`). more info in [here](https://askubuntu.com/a/60219/970218)

export PATH =" put your path here "

Save the file and that should solve the problem 😍

---

_[View the full topic](https://forum.codewithmosh.com/t/how-to-fix-mysqlclient-error/17837)._
