반응형
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- MachineLearning
- IOS
- build
- 네트워크
- linux
- MAC
- localserver
- xcode
- ReactNative
- fastapi
- centos
- webpack
- androidstudio
- 맥
- node
- 개발
- 오블완
- Android
- vsCode
- PYTHON
- TensorFlow
- 센토스
- 리눅스
- Chrome
- react
- VirtualBox
- 티스토리챌린지
- pydantic
- unittest
Archives
- Today
- Total
로메오의 블로그
python 가상환경 설정 본문
반응형
virtualenv
$ mkdir project_folder
$ cd project_folder
$ code .
$ python3 -m venv venv
$ source venv/bin/activate
$ (venv) python --version
Python 3.11.2
$ (venv) deactivate
poetry
# poetry 설치
$ curl -sSL https://install.python-poetry.org | python3 -
# poetry 환경설정
$ export PATH="$HOME/.local/bin:$PATH"
$ poetry --version
Poetry (version 2.1.3)
$ mkdir insta-gura
$ cd insta-gura
$ code .
# poetry 초기화
$ poetry init
# 기본 파일 생성
$ touch README.md
$ mkdir insta_gura
$ cd insta_gura
$ touch __init__.py
# poetry 설치
$ poetry install
# 가상공간 설정
$ poetry env info --path
$ source $(poetry env info --path)/bin/activate
(insta-gura-py3.11) python --version
Python 3.11.2
# 가상환경 종료
$ deactivate
반응형
'Backend > Python & Blockchain' 카테고리의 다른 글
| 유사사진 추천하기 Flask + MongoDB + OpenCLIP +FAISS (7) | 2025.07.27 |
|---|---|
| TensorFlow 사진 분류기 (7) | 2025.07.26 |
| Synology NAS에 python flask 웹서버 구축 (2) | 2025.07.18 |
| FastAPI 서버 구축 (0) | 2025.05.19 |
| Python3 SSL: CERTIFICATE_VERIFY_FAILED 해결하기 - Mac (0) | 2024.02.02 |
Comments