pip install mysql-python fails with EnvironmentError: mysql_config not found
It seems mysql_config is missing on your system or the installer could not find it.
Be sure mysql_config is really installed.
For example on Debian/Ubuntu you must install the package:
sudo apt-get install libmysqlclient-dev
Maybe the mysql_config is not in your path, it will be the case when you compile by yourself
the mysql suite.
Update: For recent versions of debian/ubuntu (as of 2018) it is
sudo apt install default-libmysqlclient-dev
pip install MySQL-python==1.2.5 not working
You need to install dev libs for mysql client:
sudo apt-get install libmysqlclient-dev
Receive module not found error after i pip mysql.connector
In Spyder go to Tools > Preferences > Python interpreter, select Use the following Python interpreter: and choose the Python .exe from your other installation.
There is probably a similar setting in Pycharm’s preferences.
can't install mysql==0.0.2 in python==3.8.1 environment
You shouldn't install mysql
at all.
This package is a ‘virtual package’, which requires MySQL-python (Python 2) or mysqlclient (Python 3) to install. In effect, this means ‘pip install mysql’ will actually install MySQL-python.
Instead of depending on this package, please depend on the relevant package directly.
In a Python 3 world, use either
pip install mysqlclient
(forMySQLdb
), orpip install mysql-connector-python
(formysql.connector
).
How to fix the error coming pip install MySQL-python
Here is the error, looks like you need to install MS visual C++ 14.0
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools
for Visual Studio": https://visualstudio.microsoft.com/downloads/
---------------------------------------- ERROR: Command errored out with exit status 1
Related Topics
Python 3.5 Asyncio and Multiple Websocket Servers
How to Deploy a Perl/Python/Ruby Script Without Installing an Interpreter
Unicodedecodeerror, Invalid Continuation Byte
How Is Python's List Implemented
Convert Binary to Ascii and Vice Versa
Valueerror: Setting an Array Element with a Sequence
List Comprehension Rebinds Names Even After Scope of Comprehension. Is This Right
No Module Named 'Virtualenvwrapper'
Make (Install from Source) Python Without Running Tests
How to Add File Extensions Based on File Type on Linux/Unix
Disable Webcam's Autofocus in Linux
Gdb Pretty Printing with Python a Recursive Structure
How to Capture Mouseevents and Keyevents Using Python in Background on Linux
Scheduling a Regular Event: Cron/Cron Alternatives (Including Celery)
Pytest Running with Another Version of Python
Add Custom Method to String Object
Problem Running Python from Crontab - "Invalid Python Installation"
How to Use 'Return' to Get Back Multiple Values from a for Loop? How to Put Them in a List