아래와 같이 cmd에서 명령어를 입력하면, 3.x의 virtualenv 환경을 사용할 수 있다.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> pip3 install virtualenv # 3.x의 python library virtualenv 설치 | |
> python3 -m venv myenv # python3 환경을 virtual environment를 myenv 폴더에 셋팅 | |
> myenv\Scripts\activate.bat # python3 가상 환경을 적용 | |
> deactivate.bat # 가상 환경 해제 |
pip uninstall virtualenv를 하면 2.x 의 library는 제거되어, 3.x를 기본으로 사용할 수는 있다.
Ref: The Python Standard Library » 28. Software Packaging and Distribution » 28.3. venv — Creation of virtual environments
댓글 없음:
댓글 쓰기