No, I AM SORRY !
Seriously..
I executed yoru command one first time:
pi@Domoticz:~ $sudo apt install python3-venv python3-pip
(...) All is ok (...)Then (...)
Errors were encountered while processing:
speedtest-cli
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@Domoticz:~ $
If I exxecute it a second time
pi@Domoticz:~ $ sudo apt install python3-venv python3-pip
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-venv is already the newest version (3.5.3-1).
python3-pip is already the newest version (9.0.1-2+rpt2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up python-pkg-resources (33.1.1-1) ...
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python/debpython/version.py", line 24, in <module>
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
dpkg: error processing package python-pkg-resources (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of speedtest-cli:
speedtest-cli depends on python-pkg-resources; however:
Package python-pkg-resources is not configured yet.
dpkg: error processing package speedtest-cli (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
python-pkg-resources
speedtest-cli
E: Sub-process /usr/bin/dpkg returned an error code (1)
What's wrong with me ?
always unknonwn...
Can I remove all Python package ans perform a fresh install?
I followed these step to update python the first time to install python 3.4 instead of 2.7 (if I remember well)
Code: Select all
sudo apt–get install python3.4 libpython3.4 python3.4–dev
sudo update-alternatives –install /usr/bin/python python3 /usr/bin/python3.4 2