reason
Upgrading to python3.6 will result in confusion of references to Python libraries
resolvent
Select Delete Python apt first
apt-get remove --purge python-apt
Install Python apt
apt-get install -f -y python-apt
Copy the apt PKG *. So name of python3.5 and rename it apt PKG *. So of python3.6
cd /usr/lib/python3/dist-packages/
cp apt_pkg.cpython-35m-x86_64-linux-gnu.so apt_pkg.cpython-36m-x86_64-linux-gnu.so
Read More:
- ModuleNotFoundError: No module named ‘MySQLdb‘
- [Solved] ModuleNotFoundError: No module named ‘win32api’
- Modulenotfounderror: no module named ‘CV2’ – (version problem)
- ModuleNotFoundError: No module named xxx
- ModuleNotFoundError: No module named ‘numpy.testing.nosetester‘
- ModuleNotFoundError: No module named ‘tensorboardX‘
- ModuleNotFoundError: No module named ‘notebook‘
- Mmdet error modulenotfounderror: no module named ‘mmcv_ ext‘
- ModuleNotFoundError: No module named ‘ahocorasick‘ [100% Work Method]
- ModuleNotFoundError: No module named ‘sklearn.datasets.samples_generator‘
- ModuleNotFoundError: No module named ‘mmcv._ext
- ModuleNotFoundError: No module named ‘tensorflow_core.estimator‘
- Jenkins reported an error modulenotfounderror: no module named filename solution
- Tensorflow operation report error modulenotfounderror: no module named ‘tensorflow. Python. Types’ solution
- Error importing keras in jupyter Notebook: modulenotfounderror: no module named ‘keras’ solution
- Error no module named ‘in newly installed Python_ sqlite3‘
- AttributeError: module ‘pkg_resources‘ has no attribute ‘declare_namespace‘
- How to Fix gdb error: Failed to import the site module,No module named ‘_sysconfigdata_m’
- matplotlib error – no module named tkinter
- Unable to call numpy in pychar, module notfounderror: no module named ‘numpy’