[PYTHON] You don't need to install Anaconda to build a machine learning environment. Let's use Miniconda

When it comes to creating a machine learning environment with Python, there are a lot of articles saying "Install Anaconda", but in reality, the minimum configuration version of Anaconda called Miniconda is sufficient for environment construction. It is an article that conveys that.

How to create the fastest machine learning development environment

Basically, the following is sufficient.

  1. Install Miniconda (* Please install Python3, of course)
  2. Create a development environment with conda create -n ml_env numpy scipy scikit-learn matplotlib jupyter
  3. Activate the development environment created with ʻactivate ml_env`

Actually, there are subtle differences depending on whether it is Mac or Windows, so please refer to here for details.

Also, please refer to here for how to use the conda command to create a development environment.

If you want to develop with Docker, Miniconda's official Dockerfile is provided. You can create your own container immediately by inheriting this Dockerfile with FROM and then adding additional libraries as you like with the commands conda and pip.

If you want to use TensorFlow or Chainer, you can do an additional pip install.

Why not recommend Anaconda

Anaconda is honestly too heavy. With Miniconda, you can select as much as you need, so the capacity of the development environment is about 500 to 600M, but compared to this, Anaconda takes 2 to 3G just by installing it. And there are a lot of libraries in it that you don't use.

And you don't even know which libraries your code depends on. Even if you decide to deploy it somewhere, Anaconda has many libraries installed by default, so you will not know which library it depends on. With Miniconda, you can find the required libraries for each environment. Of course, Anaconda can also create an environment for each individual project, but then Miniconda is fine.

That's all from the field.

Recommended Posts

You don't need to install Anaconda to build a machine learning environment. Let's use Miniconda
Build a Python machine learning environment with a container
How to build an environment when you want to use python2.7 after installing Anaconda3
Build a machine learning Python environment on Mac OS
Build a machine learning application development environment with Python
Build a machine learning environment natively on Windows 10 (x64)
Build a python machine learning study environment on macOS sierra
Build a machine learning environment on mac (pyenv, deeplearning, opencv)
Build a PyData environment for a machine learning study session (January 2017)
How to build Anaconda virtual environment used in Azure Machine Learning and link with Jupyter
How to quickly create a machine learning environment using Jupyter Notebook with UbuntuServer 16.04 LTS with anaconda
How about Anaconda for building a machine learning environment in Python?
How to quickly create a machine learning environment using Jupyter Notebook on macOS Sierra with anaconda
Build a "Deep learning from scratch" learning environment on Cloud9 (jupyter miniconda python3)
Build Linux on a Windows environment. Steps to install Laradock and migrate
Steps to build a Django environment with Win10 WSL Ubuntu18.04 + Anaconda + Apache2
scikit-learn How to use summary (machine learning)
How to build a sphinx translation environment
I want to build a Python environment
Don't use hash () when you need persistence!
Creating a development environment for machine learning
Build AI / machine learning environment with Python
Flutter in Docker-How to build and use a Flutter development environment inside a Docker container
If you want to make a discord bot with python, let's use a framework
How to install the deep learning framework Tensorflow 1.0 in the Anaconda environment of Windows
For beginners to build an Anaconda environment. (Memo)
[Memo] Build a virtual environment with Pyenv + anaconda
How to set up a Google Colab environment with Coursera's advanced machine learning courses
Build a machine learning environment using PyCharm on Ubuntu environment (TensorFlow will also be introduced!)
How to build a beautiful Python environment on a new Mac and install Jupter Notebook
python: 3.8-Handling Exception: you need a C compiler to build uWSGI error with alpine
How to quickly create a machine learning environment using Jupyter Notebook with UbuntuServer 16.04 LTS
[Django] Use VS Code + Remote Containers to quickly build a Django container (Docker) development environment.
Until you create a machine learning environment with Python on Windows 7 and run it
I tried to build an environment for machine learning with Python (Mac OS X)
Create a dataset of images to use for learning
Building a Python environment for pyenv, pyenv-virtualenv, Anaconda (Miniconda)
Build an interactive environment for machine learning in Python
Procedure to install TensorFlow in fish shell environment (Anaconda 4.0.0)
How to build a Django (python) environment on docker
I want to easily build a model-based development environment
[Go + Gin] I tried to build a Docker environment
Machine learning beginners try to make a decision tree
How to build a development environment for TensorFlow (1.0.0) (Mac)
Memo for building a machine learning environment using Python
How to build a Python environment on amazon linux 2
Create a machine learning environment from scratch with Winsows 10
An introduction to machine learning from a simple perceptron
Build a numerical calculation environment with pyenv and miniconda3
A site to see when you want to read a machine learning paper but it seems difficult