Building a Python development environment for AI development

1. 1. Overview

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

2. Introduction of Anaconda

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.

Installation of Anaconda

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/

image.png

Please select the latest version 3.7 and download the target according to the OS

image.png

After that, you can proceed with the default settings, but be sure to check "Add Anaconda to my PATH environment variable".

image.png

After the download is complete, launch "Anaconda Powershell Prompt" in the Anaconda folder. (From now on, I will run Python from this tool.)

image.png

Then, if you enter "Python" and the following screen is displayed, the installation of the development environment is complete.

image.png

3. 3. Building a virtual environment

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.

image.png

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)

image.png

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.

image.png

4. Summary

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

Building a Python development environment for AI development
[Mac] Building a virtual environment for Python
Building a development environment for Android apps-creating Android apps in Python
[Python] Web development preparation (building a virtual environment)
Building a Python virtual environment
[For organizing] Python development environment
Building a Python environment for pyenv, pyenv-virtualenv, Anaconda (Miniconda)
Write about building a Python environment for writing Qiita Qiita
Procedure for building a CDK environment on Windows (Python)
Building a Python environment for programming beginners (Mac OS)
Memo for building a machine learning environment using Python
Building a Python environment on Mac
Building a Python environment on Ubuntu
Python development environment options for May 2020
Emacs settings for Python development environment
Building a python environment for artificial intelligence (Chainer / TensorFlow / CSLAIER)
Building a Hy environment for Lisper who hasn't touched Python
[Python] Building a virtual python environment for the pyramid tutorial (summary)
Until building a Python development environment using pyenv on Ubuntu 20.04
Building a Python3 environment with Amazon Linux2
Python development environment for macOS using venv 2016
Let's create a virtual environment for Python
Building a Python 3.6 environment with Windows + PowerShell
Building a conda environment for ROS users
Creating a development environment for machine learning
Building a Docker working environment for R and Python 2: Japanese support
How about Anaconda for building a machine learning environment in Python?
Build a local development environment for Lambda + Python using Serverless Framework
From building a Python environment for inexperienced people to Hello world
Python development environment construction
About Python development environment
python2.7 development environment construction
Create a Python environment
Development environment in Python
Python environment for projects
Building a python environment with virtualenv and direnv
Building an environment for executing Python scripts (for mac)
Building an Anaconda environment for Python with pyenv
Building a Python environment with WLS2 + Anaconda + PyCharm
I created a Dockerfile for Django's development environment
Build a Python development environment on your Mac
Think about building a Python 3 environment in a Mac environment
Procedure for creating a Python quarantine environment (venv environment)
Set up a Python development environment on Marvericks
Building a Python environment on a Sakura VPS server
Build a mruby development environment for ESP32 (Linux)
Create a Python virtual development environment on Windows
Build a Python development environment on Raspberry Pi
Get a quick Python development environment with Poetry
Building a virtual environment for Mayavi dedicated to Python 3.6, Anaconda, Spyder users
Create a Python development environment locally at the fastest speed (for beginners)
Set up a development environment for natural language processing
I want to create a nice Python development environment for my new Mac
Recommendation of building a portable Python environment with conda
Development environment suitable for ArcPy
Build a local development environment for Laravel6.X on Mac
Python learning plan for AI learning
Building a training environment for penetration testing using Naumachia
Notes on creating a python development environment on macOS Catalina
Build a python environment for each directory with pyenv-virtualenv
Create a comfortable Python 3 (Anaconda) development environment on windows