I want to install the autopep8
module for python 3 and be able to use it as a command line tool. But installing it this way, as suggested by this answer, using pip3
instead:
pip3 install autopep8
... does not do the trick: when I try to call autopep8
from the command line, I get a "command not found" error and a suggestion to install the python-autopep8
package.
kenny@localhost:~$ pip3 install autopep8
Collecting autopep8
Collecting pep8>=1.5.7 (from autopep8)
Using cached pep8-1.7.0-py2.py3-none-any.whl
Installing collected packages: pep8, autopep8
Successfully installed autopep8-1.2.2 pep8-1.7.0
kenny@localhost:~$ autopep8
The program 'autopep8' is currently not installed. You can install it by typing:
sudo apt install python-autopep8
But this package is for python 2.7! And I could not find a python3-autopep8
one.
Is there a way to install python 3 modules (using pip3
, for example) as executables, in the same manner that you would do, say, npm install -g
?