1. Python 64bit install(Check [V] Add Python 3.9 to PATH option) * Python 64bint version : 3.9.4
(ex, C:\Dev\Python\Python39)
2. Python 32bit install(Uncheck [ ] Add Python 3.9 to PATH option) * Python 32bit version : 3.9.2
(ex, C:\Dev\Python\python39-32)
3. Python version
C:\Dev> python --version (or python -V)
Python 3.9.4 <- python 64bit version
3. Virtual environment directory make
C:\Dev> mkdir venv
4. Virtual environment directory move
C:\Dev> cd venv
5. command execute
C:\Dev\venv> python -m venv Py39_32
6. Py39_32 directory move
C:\Dev\venv> cd Py39_32
7. Edit pyvenv.cfg
C:\Dev\venv\Py39_32>notepad pyvenv.cfg
Before
-----------------------------------------------------------------------------------
home = C:\Dev\Python\Python39
include-system-site-packages = false
version = 3.9.4
-----------------------------------------------------------------------------------
After
-----------------------------------------------------------------------------------
home = C:\Dev\Python\Python39-32
include-system-site-packages = false
version = 3.9.2
-----------------------------------------------------------------------------------
8. Virtual environment(python 32bit) activate
C:\Dev\venv\Py39_32> Scripts\activate
(Py39_32) c:\Dev\venv\Py39_32> python --version (or python -V)
Python 3.9.2 <- python 32bit version
9. Virtual environment(python 32bit) deactivate
(Py390_32) c:\Dev\venv\Py39_32> Scripts\deactivate
c:\Dev\venv\Py39_32>
'개발 > Python' 카테고리의 다른 글
PIP 패키지 설치 (0) | 2021.04.16 |
---|---|
Python library list backup reinstall (0) | 2021.04.15 |
matplotlib 한글 깨짐 처리 (0) | 2021.04.08 |
conda update (0) | 2021.04.06 |
A Byte of Python 한글판 (0) | 2020.02.24 |