table of contents
It may be redundant, but I would like to write with an awareness of "from 0".
Development environment: MacOS 10.13.6 Basically, use Mac terminal as CUI. (CUI: Operate with Character User Interface characters)
The display format of the terminal is
[Computer name: Current directory name User name
Python 2.7.16 was standard on the Mac. The confirmation method is as follows.
python
$python -V
Python 2.7.16
In my case, it was displayed in version 2.7.16.
It can be developed with Python2 as standard equipment, but it seems that Python has Python2 and Python3, and it seems that it has been decided that Python2 will not be upgraded after 2.7. If you want to learn Python from now on, I want to install Python3.
The installer is provided free of charge from the official Python website. Python official website If you download the latest release from here, there should be no problem.
Check the version when the installation is complete.
python
$python3 -V
Python 3.8.0
For MacOS, the command is python3
. My version was 3.8.0.
Once Python3 is installed, you're ready to process the language Python on MacOS. However, it is meaningless without a program to process it. Next, get ready to write code
.
The famous text editor Visual Studio Code (hereinafter: VSCode) is used.
A text editor is the same as the memo
that comes standard with the Mac, and you can think of VS Code as coding-specific.
Visual Studio Code Official Site Install from here as well.
Once installed, all you have to do is use it.
You can customize VS Code to your own development environment by installing the plugin as an extension.
If you want to use it in Japanese, the Japanese Language
plugin,
Since it is coded in Python, install the Python
plugin.
(The plugin can be enabled / disabled later)
If you install a plugin called Shell
, you can use the terminal.
python
$code [file name]
Just type and VS Code will launch the file for you.
After that, code with VS Code and save it with the shortcut key command + S
on the Mac keyboard, and the coding is completed.
The terminal can also be started by using the shortcut key shift + control + @
in VS Code, so there is almost no need to use the GUI (mouse).
-[Pyhton that understands fluently](https://www.amazon.co.jp/ Python that understands fluently-Kei Iwasaki / dp / 4798151092/ref=sr_1_1?__mk_ja_JP = Katakana & dchild = 1 & keywords = Smoothly python & qid = 1519248379 & sr = 8-1 )
Next goal
--Installing Tesonrflow and Keras --Understanding the basics and framework of image recognition using MNIST
Recommended Posts