question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installing fails: mysql_config not found

See original GitHub issue

I want to upgrade from pattern 2.6 to 3.6 I uninstalled, and now I do:

sudo pip install pattern

and get EnvironmentError: mysql_config not found

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:7
  • Comments:8

github_iconTop GitHub Comments

5reactions
knarrffcommented, Apr 9, 2020

You don’t have root on all machines where you might want to use pattern, and I also do not see a reason why mysql-client should be a required dependency. Especially when the documentation mentions:

The module has no external dependencies except when using LSA in the pattern.vector module, which requires NumPy

Please make optional dependencies optional.

1reaction
amouxcommented, Oct 1, 2019

I got it working with no errors.

  • OS: Ubuntu 19.04
  • Anaconda environment: python 3.6

make sure you install libmysqlclient-dev first!

sudo apt install libmysqlclient-dev
git clone https://github.com/clips/pattern
cd pattern/
# activate conda environment.
python setup.py install

output after running python setup.py install:

Using /home/<USER-NAME>/anaconda3/envs/<ENV-NAME>/lib/python3.6/site-packages
Finished processing dependencies for Pattern==3.6
Read more comments on GitHub >

github_iconTop Results From Across the Web

pip install mysql-python fails with EnvironmentError
It seems mysql_config is missing on your system or the installer could not find it. Be sure mysql_config is really installed.
Read more >
mysql_config not found` when running pip install · Issue #652 ...
My docker container fails on the following line when executing the following line in the specify7 makefile: That is the error I get: ......
Read more >
Unable to install python mysqlclient - OSError: mysql_config ...
An answer there shows 3 ways to install the Python drivers/connectors ... To install the MySQL-python package, type the following command:
Read more >
OSError: mysql_config not found - Bobcares
“OSError : mysql_config not found” is an error we usually get when installing the python mysqlclient module using pip.
Read more >
Error mysql config not found when installing mysqldb python ...
I am trying to get a Python script to run on the linux server I'm connected to via ssh. The script uses mysqldb....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found