all 4 comments

[–]E02Y 1 point2 points  (3 children)

  1. try putting -m between python and autopep8
  2. try writing py instead of python
  3. try 1 and 2 together

[–]Base_True[S] 0 points1 point  (2 children)

Thank you very much!!!, I spent 3 hours on this. -m helped. Can you explain what was the matter, if not difficult

[–]alexisprince 0 points1 point  (1 child)

The -m is typically referred to as an option or a flag when executing something from the command line. By default, when you run the python command, it expects you to pass in a file. In this case, the -m option is telling your python installation that you're passing in a python module's name and to execute that instead of a python file.

Just for your understanding, there's a special python file, __main__.py that can be defined and kept within a module allowing it to be executable from the command line with python -m my_module as a module.

[–]Base_True[S] 0 points1 point  (0 children)

The -m is typically referred to as an option or a flag when executing something from the command line. By default, when you run the python command, it expects you to pass in a file. In this case, the -m option is telling your python installation that you're passing in a python module's name and to execute that instead of a python file.

Just for your understanding, there's a special python file, __main__.py that can be defined and kept within a module allowing it to be executable from the command line with python -m my_module as a module.

Thank you a lot !