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


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

我正在尝试在Android中执行基于web的Python Django项目。

如何解决这个错误?我怎样才能在termux中安装所需的mysqlclient ?

包名是mysql,不是mysqlclient

pip install mysql

不要从PyPI安装预编译的二进制文件。这很可能在termux中不起作用。

最新更新