I am trying to install a Python module on a raspberry pi that is running linux. I am using Python 2.7.11 and have tried the following commands:
python -m pip install schedule
python -m easy_install schedule
python2.7 -m pip install schedule
In each case I get the same error message:
Could not import runpy module
I get this same error message no matter what module I try to install. What could be causing this problem? I have been unable to find anything useful from Google searches I've done on the error message.
EDIT:
When I try adding sudo to the command like either of these:
sudo python -m pip install schedule
or sudo /usr/bin/python -m pip install schedule
I get the error:
-sh: sudo: not found
EDIT2:
When I try python -m pip install runpy
I still get:
Could not import runpy module
which python
, then use the full path to the shown binary in yoursudo
command instead of justpython
. – Giessersudo
command didn't help. The problem seems to be with finding thesudo
command not thepython
command. I got the same error. – Preciado