Since I decided to study python this time, I will use python on my laptop I will make it possible to handle it, so I will summarize it! : yum:
First, let's install python3!
: point_down_tone2: You can download it from this site. https://www.python.org/downloads/ Press the button labeled Download Python in yellow and it's OK!
Once downloaded, follow the steps to install!
I skipped this step without knowing that I needed this Trial and error in Atom: persevere: That's why python can't work (laughs)
To be honest, it was difficult around here (laughs): relaxed:
For windows10, if you enter "environment variable" in "cortana" "Edit system environment variables" will appear, so go there.
Click "Environment Variables" in "Detailed Settings" to click "User environment variable of user name" and "System environment variable" Since it will appear, click "Path" in "System Variables" Click "Edit". "New" and reinstalled Enter the python path.
Probably the default C: \ Users \ "username" \ AppData \ Local \ Programs \ Python \ Python38-32 I think it is in (your user name is your user name).
You should now have passed the environment variable Path. As a test, if you enter "python" at the command prompt and various things come out The environment variable Path passes!
Finally Atom is installed. : grin:
: point_down_tone2: You can download it from this site. https://atom.io You can download it by clicking the button labeled "Download".
Once downloaded, follow the steps to install!
Once installed, the code cannot be executed as is. : disappointed_relieved: I didn't know this and tried and errored for a long time (laughs)
Click "Setting" of "File" on the menu bar, and click "Install". Choose. Then, in "Install Packages" There is a place where "Search paccages" is written, so there Enter atom-runner.
"atom-runner" will appear, so install it. You can now run python on Atom! : joy: When executing with atom-running, it can be executed with "alt" + "r" keys.
I made it possible to execute python with Atom, but in the program When I used "input" I got an error and couldn't run: sob:
When I tried it at the command prompt, it ran without problems, so From now on, when I execute it, I will do it at the command prompt (laugh) (You can also get the command prompt by searching cortana.)
By the way, to execute at the command prompt, there is a file you want to execute Go to the directory ("cd folder path") and "python filename" You can do it with. Create the file to be executed with the extension ".py": kissing_smiling_eyes:
I'm a person who doesn't have much knowledge, so it's an article that anyone can see I think it became (laughs)
This time there is a code that throws an error in Atom and the command prompt I ran it in, but I'd like to write another article if I find out how to improve it: relaxed:
Recommended Posts