While studying various things about AI, I am finally thinking of developing AI itself. Since we built the development environment in this time, I would like to describe the contents.
Created development environment OS:Windows10 Python:3.7.4 Anaconda:3
We have selected Anaconda as the platform for AI development. Anaconda
--A complete set of tools necessary for AI development --Easy to install
So I chose this time. However, it seems that there are also the following disadvantages.
--Heavy --There are too many tools and I don't know what to do ...
I don't know the disadvantages yet, but if it's difficult to use, I'll change it.
Please download Anaconda from the following site. Also, if you have already installed Python, ** please uninstall it and then install Anaconda **.
https://www.anaconda.com/distribution/
Please select the latest version 3.7 and download the target according to the OS
After that, you can proceed with the default settings, but be sure to check "Add Anaconda to my PATH environment variable".
After the download is complete, launch "Anaconda Powershell Prompt" in the Anaconda folder. (From now on, I will run Python from this tool.)
Then, if you enter "Python" and the following screen is displayed, the installation of the development environment is complete.
Build the following Python virtual environment. (When developing with Python, it seems that virtualization is essential because many errors that are difficult to solve occur due to the difference in each version ...)
Move to the folder where you want to create the development environment and enter the following command. You can create any virtual environment by entering it.
python -m venv (arbitrary virtual environment name)
In the example below, a virtual environment called "test" is built on the desktop.
Next, start the virtual environment. First, move to the folder in the virtual environment.
cd (arbitrary virtual environment name)
You can start the virtual environment by entering the following command.
.\Scripts\activate
If the startup is successful, (any virtual environment name) will be displayed on the left side of the screen. (In the example below, "test" is displayed in green)
Install the necessary software in this state. To close the virtual environment, enter the following command.
deactivate
If the (arbitrary virtual environment name) listed on the left side disappears as shown in the screen below, it means that the virtual environment has been closed.
I introduced the AI development environment this time. From the next time, I would like to install the necessary tools for this virtual environment and carry out actual development.
Recommended Posts