I’m currently on Debian10:
$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
...
and many python3 modules seems not installed:
$ lsb_release -a
Traceback (most recent call last):
File "/usr/bin/lsb_release", line 25, in <module>
import lsb_release
File "/usr/lib/python3/dist-packages/lsb_release.py", line 29, in <module>
import csv
ModuleNotFoundError: No module named 'csv'
If I create a python file with:
import asyncio
print("hello")
and launch it, I have:
$ python3 toto.py
Traceback (most recent call last):
File "toto.py", line 1, in <module>
import asyncio
File "/usr/lib/python3.7/asyncio/__init__.py", line 8, in <module>
from .base_events import *
File "/usr/lib/python3.7/asyncio/base_events.py", line 18, in <module>
import concurrent.futures
ModuleNotFoundError: No module named 'concurrent'
Any help is welcome to fix this mess 🙂
3
Answers
pip3 install ${PACKAGE_NAME}
You can refer documentation
Generally pip is a key word which is used to install different required libraries.
It appears you need to reinstall some of your Python 3.7 packages; given that
concurrent.futures
is missing, I suspect you need at leastThis will also fix your
csv
andcgi
problems.