AI-Team-02 / hero-factory-ai

0 stars 0 forks source link

conda 환경 설정 #18

Closed i-Veni-Vidi-Vici closed 3 hours ago

i-Veni-Vidi-Vici commented 3 hours ago

[Anaconda Documentation — Anaconda documentation]

[Creating a conda environment]

# Replace <ENV_NAME> with your environment name
# Replace <VERSION> with your desired version of Python
conda create -n <ENV_NAME> python=<VERSION>

[Selecting Anaconda as a Python interpreter]

1️⃣ 단축키 사용

  1. Open any Python file.
  2. To select a Python interpreter, open the Command Palette by pressing Ctrl + Shift + P on Windows/Linux or Cmd + Shift + P on macOS.
  3. Click Python: Select Interpreter in the Command Palette and select the interpreter associated with your Anaconda environment.

2️⃣ 상태 표시줄 사용

VSC_python_interpreter1

3️⃣ 생성된 환경 활성화

conda activate <ENV_NAME>

[Deactivating an environment]

conda deactivate

[Create same conda environment]

1️⃣ conda 환경 파일 생성

conda list --explicit > spec-file.txt

2️⃣ 환경 파일을 통해, 동일한 환경 생성

conda create --name myenv --file spec-file.txt
i-Veni-Vidi-Vici commented 3 hours ago

Notion 사용 종료로 인한, Document 이동