I try to save the changes in CSS on my computer so that after reloading the web page the changes remain.

The tutorial on developers.google.com says:

"Start a local web server in ~ / Desktop / app. You’ll prefer."

cd ~/Desktop/app python -m SimpleHTTPServer 

So, I use IDE PyCharm, I don’t know how to execute this command through it, although I installed SimpleHTTPServer

In the command line in the desired folder when I run the above command, I get

 no module named SimpleHTTPServer 

When executing a command

 pip install SimpleHTTPServer 

mistake

 Collecting SimpleHTTPServer Could not find a version that satisfies the requirement SimpleHTTPServer (from versions: ) No matching distribution found for SimpleHTTPServer 

The question how to do what google suggests can be to install another module for the http server, and how best to do it through the IDE?

    1 answer 1

    What version of python do you run with the python command? If the third, then in it SimpleHTTPServer is integrated with the http.server module and you need to run it like this:

     python -m http.server 

    Well, or as an option, obviously launch the second python, if you have it installed:

     python2 -m SimpleHTTPServer 

    If the tutorial you are following was made under the second python, then perhaps this is the version that should be used in order not to stumble from time to time into minor inconsistencies between the second and third versions of the language. Well, or look for a fresher tutorial :)