Install error: ftheader.h: No such file or directory

When I am trying to build matplotlib-1.3.1, I am getting the below freetype header errors. Probably it is not finding the ftheader.h. Any idea on how to solve this problem? NOTE: I just installed...

What are the differences between mysql-connector-python, mysql-connector-python-rf and mysql-connector-repackaged?

I'd like to use the mysql-connector library for python 3. I could use pymysql instead, but mysql-connector already has a connection pool implementation, while pymysql doesn't seem to have one. So...

Python connect to MySQL failed with error "dh key too small"

I'm trying to connect to the company's MySQL database. The policy was that I am to connect only using SSL. I am provided the username, CA certificate, certificate, and private key. If I use...

How to install mysql-connector for python 3.5.1?

I'm on python 3.5.1 and I am having trouble installing mysql connector: install --allow-external mysql-connector-python-rf mysql-connector-python-rf is not working, neither is the normal pip...

Which of the 'MySQL-Python' connector should I install?

I use MariaDB 10, and I had installed the mysql-connector-python on CentOS server for over a year. Also I had installed on my Mac. Now I formatted the two machines, and can not install on...

Connecting Python to MySQL using an encrypted option file

I used mysql_config_editor to create a .mylogin.cnf file with a password. I know it worked correctly because I can use it to connect through both the command line utility mysql and the R package...

Django not creating tables " Table django_session does not exist"

Whenever I run python manage.py migrate I cannot get the required tables. The only tables that I get are django_content_type and django_migrations. Because of this I cannot log into the admin page...

Error installing mysql-connector-python on Amazon Linux AMI via pip-3.4

Apologies in advance if this is an easy fix, I have searched for an answer with no luck. I'm trying to install the mysql-connector[-python] package on Amazon's Linux AMI. For my purposes, I want...

Python won't recognize mysql.connector even though I have it installed?

I installed mysql connector with pip, so now I have: $ pip install mysql-connector Requirement already satisfied: mysql-connector in /usr/local/lib/python2.7/dist-packages I also tried: $ pip...

Django, mysql ; Error loading MySQLdb module

I just tried to checkout a project, I was working on, from github, on my laptop(windows 10, pycharm). I installed every library, and connectors it needed to run, try to runserver and get this: ...

pip install mysql-connector-python installation error

I'm getting an error after installing MySQL Connector for Python 2.7.9 in Linux OS. Command /usr/bin/python -c "import...

How to correct my python3 environment on Ubuntu 16.04 (64 bit)

I tried to install the mysql connector for my python environment. I use python on my Linux (Ubuntu 16.04) machine. On this machine python 2.7.12 and python 3.5.2. I probably messed something up...

How do you install MySQL for Flask?

I am using OS X Yosemite, Python 3.6.2 and basically went through every single stackoverflow post regarding installation of MySQL into flask. I've tried pip install flask-mysqlDB which gives me...

How to use mysql.connector in Python 2.6

I'm using Python 2.6 in centos. I'm trying to connect with MySQL server. I've tried pip install mysql-connector, mysql-connector-python and mysql-connector-python-rf yet I can't mysql_connector.so...

how can Python see changes made to MariaDB by another client?

On my Windows machine, I have a very simple database on MariaDB (10.3.7) to which I connect with the mysql-connector-python-rf (2.2.2). I also connect to the database with 2 instances of HeidiSQL...

exit code 127 and ': No such file or directory`

The container `` below is exiting with code 127 and the message ': No such file or directory. What specific changes need to be made in order for this error to resolve so that the container can...

AWS Elastic Beanstalk "gcc: error trying to exec 'cc1plus': execvp: No such file or directory"

I am trying to deploy a django project, which makes use of MSSQL Server. I am trying to deploy it using AWS Elastic Beanstalk. If anyone could help me out I would really appreciate it. I have GCC...

Hive: Cannot connect to SQL inside Docker

I am trying to create a docker container with hadoop and hive. Here is my Dockerfile FROM ubuntu:latest USER root RUN apt-get update #RUN apt-get -y install default-jre RUN apt-get install -y...

import mysql.connector ModuleNotFoundError: No module named 'mysql.connector'; 'mysql' is not a package

import mysql.connector ModuleNotFoundError: No module named 'mysql.connector'; 'mysql' is not a package pip install mysql-connector-python-rf python version-3.7.2 pip install...

Can not import mysql.connect

I cannot import mysql.connector module. My project interpreter is anaconda 3.7. Error message is ModuleNotFoundError: No module named 'mysql.connector'; 'mysql' is not a package. I've tried these,...

Mysql will not install due to mariadb install but mariadb is not installed

Been trying for hours to get mysql installed but it failed due to a conflict. This is a brand newly installed CentOS 8 x64 (latest) and it's fully updated. There are no custom packages installed...

installing yfinance python package in docker container

I am trying to modify this docker compose setup to install a number of python packages including yfinance. In my mind there are three ways to install packages and i'd like to be able to use each...

mysql connector not found

I am using Python3, I have tried to install mysql.connector with this command pip install mysql-connector-python-rf but when I run the code I get ModuleNotFoundError: No module named 'mysql' if I...

ModuleNotFoundError: No module named 'mysql.connector'; 'mysql' is not a package

I tried this: pip install mysql-connector-python It said that the requirement was satisfied. Then I used: pip install mysql-connector-python-rf and got this error: ERROR: Command errored out...

MAC OS import mysql.connector ModuleNotFoundError: No module named 'mysql'

when i do import mysql.connector it says am00.py", line 5, in import mysql.connector ModuleNotFoundError: No module named 'mysql' but I installed all things that I need(MySQL, python,...

Sha256 Mismatch for pip install on fresh docker image

I am trying to create a docker image with a bunch of python libraries. On doing a pip install --no-cache-dir -r requirements.txt, it keeps failing with mismatched hashes for libraries, especially...

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe1 in position 6: invalid continuation byte

So this started when I upgraded my mint 19 to 20. The full error: Traceback (most recent call last): File "/home/notification/views.py", line 206, in get ...

Problem with pip install mariadb - mariadb_config not found

I have been trying to run pip3 install mariadb on my raspberry pi running ubuntu 18.04 and I was unsuccessful. I have tried installing following packages as suggested in other answers: sudo...

Unable To Import MySql.Connector For Python 3.8.5 VirtualEnv

I simply want to use the MySQL driver for python: import mysql.connector Note that I've tried most of the suggestions on this old post, and they still aren't working after troubleshooting the...

How to fix ModuleNotFoundError: No module named '_mysql'?

Environment: Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-45-generic x86_64) Server version: Apache/2.4.29 (Ubuntu) Python 3.7.5 Flask 1.1.2 Werkzeug 1.0.1 We deployed a flask application on our VPS...