+++
title = "Windows"
weight = 50
+++

## Install on Windows

#### Install Python environment

As a prerequisite, Python must be installed, see [Python on Windows](/deploy/py/win).

#### Install BornAgain as a Python package

Install BornAgain from [PyPI](https://pypi.org):
```
$ python -m pip install bornagain
```

### Troubleshooting

Frequent problems include the following:

* [How many Python distributions are installed on the system?](#how-many-python)
* [Does the Python interpreter version match the BornAgain package?](#does-interpreter-match)

#### How many Pythons are installed on the system?
{{% anchor "how-many-python" %}}

Having more than one Python interpreter installed on the system may cause subtle errors.
Managing their co-existence is possible, but may require special skills.
It may be preferable to uninstall all Python versions but one.

#### Does the Python interpreter version match the BornAgain installation?
{{% anchor "does-interpreter-match" %}}

BornAgain is a `64-bit` application and requires a `64-bit` Python3 installed on the system.

The Python version number (major.minor) must be supported by the BornAgain
wheel. When installing from PyPI, `pip` selects a compatible wheel
automatically or reports that no matching distribution is available.
