Python3.10版本安装dbutil一直失败,求解决

img


Python3.10版本安装dbutil一直失败,无论是直接pip install dbutil还是指定dbutil各种版本安装,报错提示“error: subprocess-exited-with-error”,或者pycharm进行安装也是失败,再就是重装pip,下载dbutil文件在本地安装也是失败,求解决
报错如下:
error: subprocess-exited-with-error
ModuleNotFoundError: No module named 'urlparse'
error: subprocess-exited-with-error
note: This error originates from a subprocess, and is likely not a problem with pip.

使用清华大学镜像源可以加速 PyInstaller 及其依赖库的下载和安装。
可以按照以下步骤使用清华大学镜像源:
打开 terminal 或命令提示符。
输入以下命令(如果是 Windows,请在命令提示符中运行):
pip install -i https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple pyinstaller
这会将 PyInstaller 安装源切换为清华大学镜像源,在此基础上安装 PyInstaller,应该就能够成功安装了。