linux – Python ImportError no module named statistics after downloading
linux – Python ImportError no module named statistics after downloading
Statistics A Python 2.* port of 3.4 Statistics Module (PyPI).
If you use 2.7.9, you will have pip installed, and pip install statistics
within the 2.7 directory should install the module for 2.7 (I am not a pip or virtual machine expert, so might be slightly off.)
It comes pre-installed in python –Version 3. To import in python version 2 in Ubuntu, open Terminal and type
sudo pip install statistics
Enter your password and it will get installed.
Ps: you need to have pip already installed.
linux – Python ImportError no module named statistics after downloading
You need to be using python 3.4 to import statistics. Upgrade to the current version and you should have no problems.