From 7e5a65a0192cbc58b6a118f6337d8bf6c5de23c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Ng=E1=BB=8Dc=20B=C3=ACnh?= <47907431+nguyenngocbinh@users.noreply.github.com> Date: Fri, 5 Jul 2024 14:43:47 +0700 Subject: [PATCH] Update Environment.md --- python-snippet/Environment.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/python-snippet/Environment.md b/python-snippet/Environment.md index af3a1df..2325d3d 100644 --- a/python-snippet/Environment.md +++ b/python-snippet/Environment.md @@ -10,7 +10,7 @@ title: Environment 1. Quick create env using `conda create` - ``` + ```sh conda create -n env_rdm python=3.10 pip ipykernel notebook conda activate env_rdm ``` @@ -43,7 +43,7 @@ title: Environment 1. Create env use `requirements.txt` file - ``` + ```sh conda list --export > requirements.txt conda install --file requirements.txt ``` @@ -52,25 +52,25 @@ title: Environment - Conda environment list - ``` + ```sh conda info --env ``` - Remove conda environment - ``` + ```sh conda deactivate conda env remove -n python38 ``` - Activate conda environment - ``` + ```sh conda activate python38 ``` - Clean unused library - ``` + ```sh conda clean --all pip cache remove * ``` @@ -80,14 +80,14 @@ title: Environment 1. Use conda to create new environment 1. Use `ipython` - ``` + ```sh conda activate python38 ipython kernel install --user --name=python38 ``` 1. Remove jupyter notebook environment (require run as administrator) - ``` + ```sh jupyter kernelspec list jupyter kernelspec uninstall python38 ```