SiD_Sidduganesh
SiD_Sidduganesh

Reputation: 1

Termux - Android(pip install --only-binay :all: mysqlclient --user)

django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.

Did you install mysqlclient?

$ pip install --only-binary :all: mysqlclient --user

ERROR: Could not find a version that satisfies the requirement mysqlclient (from versions: none)

ERROR: No matching distribution found for mysqlclient

I am trying to execute a Python web-based Django project in Android.

How to solve this error? How can I be able to install required mysqlclient in termux?

Upvotes: 0

Views: 399

Answers (2)

SYSA
SYSA

Reputation: 3

I was looking for the same solution and I came across this: How to install MySQL connector package in Python?

pip3 install mysql-connector

Upvotes: 0

Sunlight
Sunlight

Reputation: 178

The package name is mysql not mysqlclient.

pip install mysql

And don't install a precompiled binary from PyPI. Most likely that won't work in termux.

Upvotes: 0

Related Questions