> For the complete documentation index, see [llms.txt](https://alfredo-reyes-montero.gitbook.io/tenser-flow/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alfredo-reyes-montero.gitbook.io/tenser-flow/installation/macos.md).

# MacOs

This guide explains how to install TensorFlow on macOS.

### Prerequisite:

#### Python

In order to install TensorFlow, your system must contain one of the following Python versions:

* Python 2.7
* Python 3.3+

#### Pip

Pip installs and manages software packages written in Python. If you intend to install with native pip, then one of the following flavors of pip must be installed on your system:

* `pip`, for Python 2.7
* `pip3,` for Python 3.n.

`pip` or `pip3` was probably installed on your system when you installed Python. To determine whether pip or pip3 is actually installed on your system, issue one of the following commands:

```
$ pip -V  # for Python 2.7
$ pip3 -V # for Python 3.n
```

#### Xcode

Be sure that xcode version is the newest.

## Install TensorFlow

Install TensorFlow by invoking one of the following commands:

```
$ pip install tensorflow    #Python 2.7; CPU support
$ pip install tensorflow    #Python 3.n; CPU support
```

## Uninstalling TensorFlow <a href="#uninstalling_tensorflow_1" id="uninstalling_tensorflow_1"></a>

To uninstall TensorFlow, issue one of following commands:

```
$ pip uninstall tensorflow

$ pip3 uninstall tensorflow
```


---

# 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:

```
GET https://alfredo-reyes-montero.gitbook.io/tenser-flow/installation/macos.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
