![](/img/trans.png)
[英]ERROR 'pip install mysqlclient' on Ubuntu 18.04 and python3.8
[英]I am getting a strange error when trying to install mysqlclient on Ubuntu 18.04
sudo apt-get install libsqlite3-dev libmysqlclient-dev -y
Output:
After this operation, 10.5 MB of additional disk space will be used.
Err:1 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-0ubuntu2
Could not connect to in.archive.ubuntu.com:80 (2403:8940:ffff::f), connection timed out Could not connect to in.archive.ubuntu.com:80 (103.97.84.254), connection timed out
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/z/zlib/zlib1g-dev_1.2.11.dfsg-0ubuntu2_amd64.deb Could not connect to in.archive.ubuntu.com:80 (2403:8940:ffff::f), connection timed out Could not connect to in.archive.ubuntu.com:80 (103.97.84.254), connection timed out
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
有人知道解决这个问题吗
似乎 apt 无法连接到正确的存档。 也许有一个选项,您可以在其中更改要从中下载的服务器。
您也可以尝试按照错误消息中的建议运行sudo apt update
或sudo apt install libsqlite3-dev libmysqlclient-de --fix-missing
。
编辑:我发现,您可以通过转到software sources
来更改镜像(Linux Mint,也许这也适用于您)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.