sudo apt-get install python3-apt --reinstall cd /usr/lib/python3/dist-packages ll apt_pkg.cpython-* sudo ln -s apt_pkg.cpython-{your-version-number}-x86_64-linux-gnu.so apt_pkg.so
解释
# 查看你自己的有那些.so文件 赋值一份到 apt_pkg.so
安装成功了!
参考资料
https://stackoverflow.com/questions/13708180/python-dev-installation-error-importerror-no-module-named-apt-pkg
标签:named,module,No,apt,so,pkg From: https://www.cnblogs.com/liqi175/p/16614156.html