Miniconda
In this article, I will introduce Miniconda to create a virtual development environment.
Last updated
In this article, I will introduce Miniconda to create a virtual development environment.
Last updated
Miniconda is a very useful tool for developers. It is a repository management system without any packages. If you would like to use pre-shipped packages, you better choose Anaconda, a distribution with some common built in packages.
Package, dependency and environment management for any language—Python, R, Ruby, Lua, Scala, Java, JavaScript, C/ C++, FORTRAN — Conda Official Description
For my personal preference, I would choose Miniconda which provides a fresh and clean virtual environment for me to decide what packages should be installed. Some people may think that Miniconda is for Python, however, it is not true. For example, Nodejs can also be used with it. I will introduce the basic usage of Miniconda in the coming section. If you want to go deeper, you can check
Before starting to use the miniconda, we have to go Miniconda — Conda to download and install the binary installer.
After the installation, I recommend to install the following items to enhance Miniconda
A community driven packaging for conda.
Used for searching the updated package. It is used for replace the original official channel.
anaconda Anaconda channel
conda-env Provides a unified interface to dealing with Conda environments. Used for managing the environment.
To create a new virtual environment, use
A new folder will created in the current working directory.
At the same level of virtual environment directory, run
If you are use Mac or Linux based OS, you should use
or
Use Conda to install modules
This section will make use of condo-env
Create Environment from config
Besides Python, conda can help to create the Virtual Environment for nodejs. You can create it with
Since default conda create -p nodejs nodejs only have version 6, but the latest LTS is 8