I couldn't find any good material (not too much information, not too little information) about how to use Anaconda (conda command), so I summarized it.
This article assumes that you have Anaconda installed.
You can check the installation with the following command.
$ conda --version
conda 4.8.2
! Conda --version
and !
at the beginning of the command on the Python cell.A collection of Python packages for data science
--Supports over 1,500 packages
--Supports both GUI and command line
--Can be operated using the conda
command
By using Anaconda, it is possible to easily build and switch the development environment without taking time to install the library.
Reference: https://www.creativevillage.ne.jp/72837
$ conda create --name my_notebook_env python=3.7 -y
-name my_notebook_env
: The name of the virtual environment. You can set whatever you like.
python = 3.7
: Python version used in the virtual environment
-y
: Automatically respond to confirmation items with yes
Enable virtual environment
$ conda activate my_notebook_env
Disable virtual environment
$ conda deactivate
Delete virtual environment
$ conda remove --name my_notebook_env --all
To install pandas
$ conda install pandas
To install jupyter
$ conda install jupyter
View a list of installed libraries
$ conda list
Activate the virtual environment and launch jupyter notebooks
$ conda activate my_notebook_env
$ jupyter notebook
With Anaconda, you can easily build and switch development environments! Also, if the environment is damaged, you can easily rebuild it, so you can rest assured!
Introducing Anaconda | Even More Python for Beginners
Recommended Posts