Rebuilding an environment for machine learning with Miniconda (Windows version)

Introduction

Since I started using it for machine learning about a year ago, I've been installing it without knowing anything, but it's so chaotic that I'll rebuild it here.

Assumed reader

--Python can be used to some extent --Mainly use machine learning and data science ――I want to use multiple environments properly

What is Miniconda

Miniconda is a free minimal installer for conda. It is a small, bootstrap version of Anaconda that includes only conda, Python, the packages they depend on, and a small number of other useful packages, including pip, zlib and a few others. Use the conda install command to install 720+ additional conda packages from the Anaconda repository. (From Miniconda)

A lightweight version of Anaconda. It's lighter than Anaconda, which has a large number of packages installed from the beginning, and requires less storage occupancy. __ Anaconda is recommended for those who find it difficult to install packages one by one. __

(* Note) About package management tools other than Anaconda

There are other Python package management tools (Pipenv / venv, etc.), Here, we will introduce only the advantages and disadvantages of Anaconda (Miniconda).

__Anaconda Benefits __ Strong in machine learning and data science libraries (easy to install, high performance) You can easily create a virtual environment

__Anaconda Disadvantages __ There are few types of packages Some os functions may not be available

reference https://qiita.com/KRiver1/items/c1788e616b77a9bad4dd

Now, environment construction

Clear the original environment

Environment before rebuilding

--Python3.7 (Download from Python.org)

I didn't keep a record of the deletion, so I will post a link that I used as a reference.

Uninstall Python (for Python.org)

https://gammasoft.jp/support/uninstall-python-completely-on-windows/

Uninstall Anaconda

https://insilico-notebook.com/conda-uninstall/ (* Note) I cleared it by the method of (2) above, but for some reason Anaconda itself could not be uninstalled, so I tried again by the method of (1).

Install Miniconda

-[1] Miniconda Download the installer

-[2] Run the installer

(Note 1) Basically, I think it is better to install with Just Me. (To keep the system environment clean) image.png

(Note 2) If you check Add Miniconda3 to my PATH environment variable, the PATH of the related application will be added. Check it if you don't want to set environment variables later. (Officially deprecated.) image.png

-[3] Check if the PATH is correct

Success if the conda command is recognized cmd.jpg

Miniconda runtime environment management policy

Click here for virtual environment https://qiita.com/yakisobamilk/items/867dce8e53824146ce05

--__ base environment is not used __

It gets messy when the environment is corrupted.

--__ Prepare a virtual environment for default instead __

For the time being, prepare a virtual environment for the default in case you want to run Python, and use it instead of the base environment.

--_ Create a virtual environment for each project __

This area is the same.

__ Basically, we will operate in a virtual environment, and if the environment is damaged, we will maintain it with a policy of deleting the virtual environment. __

Finally

There are pros and cons to using Anaconda, but as a result of using it in various ways, I feel that it suits me best. Have a good Miniconda life! !! : snake:

Recommended Posts

Rebuilding an environment for machine learning with Miniconda (Windows version)
Building a Windows 7 environment for getting started with machine learning with Python
I built an environment for machine learning from scratch (windows10 + Anaconda + VSCode + Tensorflow + GPU version)
[Definitive Edition] Building an environment for learning "machine learning" using Python on Windows
Build an interactive environment for machine learning in Python
Build an environment for machine learning using Python on MacOSX
Create an environment for "Deep Learning from scratch" with Docker
I tried to build an environment for machine learning with Python (Mac OS X)
Create an arbitrary machine learning environment with GCP + Docker + Jupyter Lab
Amplify images for machine learning with python
An introduction to OpenCV for machine learning
[Shakyo] Encounter with Python for machine learning
An introduction to Python for machine learning
Creating a development environment for machine learning
Build AI / machine learning environment with Python
Building an environment for "Tello_Video" on Windows
[Definitive Edition] Building an environment for learning "machine learning" using Python on Mac
An introduction to machine learning for bot developers
Building an Anaconda environment for Python with pyenv
Various commands for building an environment with Apache
[Python] Collect images with Icrawler for machine learning [1000 images]
Image Processing with Python Environment Setup for Windows
Try building an environment for MayaPython with VisualStudioCode
Build a Python machine learning environment with a container
[Linux] WSL2 Build an environment for laravel7 with Ubuntu 20.04
Building an environment for natural language processing with Python
Build a machine learning application development environment with Python
Create an OpenAI Gym environment with bash on Windows 10
Study method for learning machine learning from scratch (March 2020 version)
Memo for building a machine learning environment using Python
Create an environment for test automation with AirtestIDE (Tips)
Create a machine learning environment from scratch with Winsows 10
Build a machine learning environment natively on Windows 10 (x64)
Until you create a machine learning environment with Python on Windows 7 and run it
Machine learning learned with Pokemon
Data set for machine learning
Japanese preprocessing for machine learning
Create an environment with virtualenv
Machine learning with Jupyter Notebook in OCI Always Free environment (2019/12/17)
Let's get started with Python ~ Building an environment on Windows 10 ~
An introduction to machine learning
Build a machine learning scikit-learn environment with VirtualBox and Ubuntu
venv environment with windows powershell
F2py on Miniconda for Windows
Machine learning with Python! Preparation
ML environment construction with Miniconda
Prepare Python development environment with Mac + Windows + VisualStudio Code (Windows version)
For those who want to start machine learning with TensorFlow2
Prepare Python development environment with Mac + Windows + VisualStudio Code (Mac version)
Machine learning Minesweeper with PyTorch
Machine learning environment construction macbook 2021
Build a machine learning environment
Machine learning environment settings based on Python 3 on Mac (coexistence with Python 2)
Feature Engineering for Machine Learning Beginning with Part 3 Google Colaboratory-Scaling
Beginning with Python machine learning
Try machine learning with Kaggle
Build a PyData environment for a machine learning study session (January 2017)
Building an auto-sklearn environment that semi-automates machine learning (Mac & Docker)
Create a Python execution environment for Windows with VScode + Remote WSL
How about Anaconda for building a machine learning environment in Python?
Machine Learning with docker (42) Programming PyTorch for Deep Learning By Ian Pointer