Skip to content

Commit 4ff01eb

Browse files
committed
Update virtualenv guide
1 parent 47f62a2 commit 4ff01eb

File tree

2 files changed

+30
-97
lines changed

2 files changed

+30
-97
lines changed

docs/Guide_virtualenv.md

Lines changed: 15 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
# Environment setting guide
1+
# Virtualenv setting guide
22

3-
Guides how to set up virtualenv environment to run Python Package. <br>
4-
Introducing Anaconda (or miniconda) that can install Python + virtualenv environment at once.
3+
Guides how to set up virtualenv environment to run Python Package.
54

65
## Contents
7-
6+
- [How to install Python](#python)
87
- [Set up virtualenv](#virtualenv)
9-
- [Set up Python and Virtualenv at once](#setup)
10-
- [How to install Anaconda](#howto)
11-
- [Note](#note)
8+
- [Virtualenv command](#command)
9+
10+
## 💻 <a name="python"></a>How to install Python
11+
12+
- Refer to the [Installation Guide][install] for how to install Python.
1213

14+
[install]: https://realpython.com/installing-python
1315

1416
## 📋 <a name="virtualenv"></a>Create and activate virtualenv
1517

@@ -22,46 +24,10 @@ $ source venv/bin/activate
2224

2325
[venv]: https://docs.python.org/3.6/library/venv.html
2426

25-
## 🚀 <a name="setup"></a>How to set up Python and Virtualenv at once : Anaconda | Miniconda
26-
27-
With [Anaconda][anaconda], you can activate the virtualenv environment with various Python versions.
28-
Anaconda is a tool that makes it easy to manage and configure library packages for Python or R programs.
29-
30-
[anaconda]: https://www.anaconda.com/products/individual
31-
32-
33-
### <a name="howto"></a>How to set up python 3.6 environment with Ananconda
34-
1. Install anaconda
35-
```
36-
$ wget https://repo.anaconda.com/archive/Anaconda3-2020.07-Linux-x86_64.sh
37-
$ bash Anaconda3-2020.07-Linux-x86_64.sh
38-
$ source ~/anaconda3/etc/profile.d/conda.sh
39-
```
40-
2. Create the python 3.6 environment. <br>
41-
ex) py36: virtual environment name, python=3.6 : Python version to use
42-
```
43-
$ conda create --name py36 python=3.6
44-
```
45-
3. Activate python environment.
46-
```
47-
$ conda activate py36
48-
```
49-
4. Turn off the activation of the python environment setting called base automatically when connecting to the shell.
50-
(To ensure that the existing Python version is not changed.)
51-
```
52-
$ conda config --set auto_activate_base false
53-
```
54-
## 📄 <a name="note"></a>Note
55-
56-
### About Miniconda
57-
If you don't need the Python package that is additionally installed when installing Anaconda, you can use [Miniconda][mini], a minimal installer for conda.
58-
59-
[mini]: https://docs.conda.io/en/latest/miniconda.html
60-
61-
### Difference between virtualenv and conda commands
27+
## ⌨️ <a name="command"></a>Virtualenv commands
6228

63-
| Command description | virtualenv | conda |
64-
| ------------- | ------------- | ------------- |
65-
| Create a virtual environment. | virtualenv -p [python_version] [env_name] | conda create --name [env_name] python=[python_version] |
66-
| Activate a virtual environment. | source [env_name]/bin/activate |conda activate [env_name]
67-
| Deactivate a virtual environment | deactivate | conda deactivate |
29+
| Command description | command |
30+
| ------------- | ------------- |
31+
| Create a virtual environment. | virtualenv -p [python_version] [env_name] |
32+
| Activate a virtual environment. | source [env_name]/bin/activate |
33+
| Deactivate a virtual environment | deactivate | conda deactivate |

docs/Guide_virtualenv_Kor.md

Lines changed: 15 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
# 환경 세팅 가이드
1+
# Virtualenv 세팅 가이드
22

3-
Python package를 실행하기 위한 virtualenv 환경 세팅하는 가이드입니다. <br>
4-
Anaconda (또는 miniconda) 를 통해 Python + virtualenv 환경을 한번에 세팅하는 방법을 소개합니다.
3+
Python package를 설치 및 실행하기 위한 virtualenv 환경 세팅하는 가이드입니다.
54

65
## Contents
7-
6+
- [Python 설치 방법](#python)
87
- [virtualenv 세팅하는 법](#virtualenv)
9-
- [Python + Virtualenv 한번에 설치하는 법](#setup)
10-
- [Anaconda 설치 방법](#howto)
11-
- [참고 사항](#note)
8+
- [virtualenv 명령어](#command)
9+
10+
## 💻 <a name="python"></a>Python 설치 방법
11+
12+
- Python 설치 방법은 [설치 가이드][install] 링크를 참조하세요
1213

14+
[install]: https://realpython.com/installing-python
1315

1416
## 📋 <a name="virtualenv"></a>virtualenv 생성하고 활성화하는 법
1517

@@ -22,45 +24,10 @@ $ source venv/bin/activate
2224

2325
[venv]: https://docs.python.org/3.6/library/venv.html
2426

25-
## 🚀 <a name="setup"></a>Python과 Virtualenv를 한번에 설치 : Anaconda | Miniconda
26-
27-
[Anaconda][anaconda]를 이용하면 다양한 Python 버전으로 virtualenv 환경을 활성화할 수 있습니다.
28-
29-
[anaconda]: https://www.anaconda.com/products/individual
30-
31-
32-
### <a name="howto"></a>Anaconda 이용하여 python 3.6 environment 세팅하는 법
33-
1. Anaconda 설치
34-
```
35-
$ wget https://repo.anaconda.com/archive/Anaconda3-2020.07-Linux-x86_64.sh
36-
$ bash Anaconda3-2020.07-Linux-x86_64.sh
37-
$ source ~/anaconda3/etc/profile.d/conda.sh
38-
```
39-
2. python 3.6 환경 생성 <br>
40-
ex) py36: virtual environment name, python=3.6 : Python version to use
41-
```
42-
$ conda create --name py36 python=3.6
43-
```
44-
3. python 3.6 환경 활성화
45-
```
46-
$ conda activate py36
47-
```
48-
4. Shell 연결하면 자동으로 활성화하는 옵션 끄기
49-
```
50-
$ conda config --set auto_activate_base false
51-
```
52-
## 📄 <a name="note"></a>Note
53-
54-
### Miniconda에 대하여
55-
56-
Anaconda 설치시 추가로 설치되는 Python package가 불필요한 경우, Anaconda 대신 conda를 위한 최소한의 installer인 [Miniconda][mini]를 활용할 수 있습니다.
57-
58-
[mini]: https://docs.conda.io/en/latest/miniconda.html
59-
60-
### virtualenv 와 conda 명령어 차이
27+
## ⌨️ <a name="command"></a>virtualenv 명령어
6128

62-
| Command description | virtualenv | conda |
63-
| ------------- | ------------- | ------------- |
64-
| 가상환경 생성 | virtualenv -p [python_version] [env_name] | conda create --name [env_name] python=[python_version] |
65-
| 가상환경 활성화 | source [env_name]/bin/activate |conda activate [env_name]
66-
| 가상환경 비활성화 | deactivate | conda deactivate |
29+
| Command description | command |
30+
| ------------- | ------------- |
31+
| 가상환경 생성 | virtualenv -p [python_version] [env_name] |
32+
| 가상환경 활성화 | source [env_name]/bin/activate |
33+
| 가상환경 비활성화 | deactivate |

0 commit comments

Comments
 (0)