---
title: "EnvironmentError: mysql_config not found pip install"
author: "sech"
date: "2017-10-23T15:18:03Z"
tags: []
categories: ["开源软件"]
slug: "environmenterror-mysql-config-not-found-pip-install"
draft: false
lastmod: "2017-10-23T15:18:03Z"
id: 2397339
url: "https://sech.iteye.com/blog/2397339"
---

Mac:

```
export PATH=$PATH:/usr/local/mysql/bin
```

 Ubuntu:

```
sudo apt-get install libmysqlclient-dev
```

 

 

参考：https://stackoverflow.com/questions/5178292/pip-install-mysql-python-fails-with-environmenterror-mysql-config-not-found