> For the complete documentation index, see [llms.txt](https://krjaeh0.gitbook.io/j-log/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://krjaeh0.gitbook.io/j-log/devtool/env-setup/pythonidesetupformac.md).

# PythonIDESetupForMac

{% stepper %}
{% step %}

### 버전 확인 방법: --version

명령어:

{% code title="명령어" %}

```
```

{% endcode %}

```bash
python3 --version
python --version
```

출력 예:

```bash
(base) admin@adminui-MacBookAir ~ % python --version
Python 3.9.6

(base) admin@adminui-MacBookAir ~ % python3 --version
Python 3.11.7
```

{% hint style="info" %}
파이썬이 두 개 설치된 것처럼 보입니다.
{% endhint %}
{% endstep %}

{% step %}

### 설치 경로 확인: which

명령어:

{% code title="명령어" %}

```
```

{% endcode %}

```bash
which python
which python3
```

출력 예:

```bash
(base) admin@adminui-MacBookAir ~ % which python
python: aliased to /usr/bin/python3

(base) admin@adminui-MacBookAir ~ % which python3
/opt/anaconda3/bin/python3
```

{% hint style="info" %}
python3의 경우 아나콘다(Anaconda) 설치를 통해 함께 설치된 것처럼 보입니다.
{% endhint %}
{% endstep %}

{% step %}

### 라이브러리 설치: pip, pip3

명령어:

{% code title="명령어" %}

```bash
pip install requests
pip3 install requests
python -m pip install requests
```

{% endcode %}

{% hint style="warning" %}
사용하는 파이썬 버전에 해당하는 pip가 무엇인지 모를 경우, python -m pip 형식(-m 옵션)을 사용하면 현재 사용 중인 파이썬 인터프리터와 연결된 pip를 실행하므로 안전합니다.
{% endhint %}
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://krjaeh0.gitbook.io/j-log/devtool/env-setup/pythonidesetupformac.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
