Skip to content

Installation

Victor edited this page Mar 31, 2021 · 26 revisions

If you have issues during installation, then here is troubleshooting wiki:

https://github.com/pythonnet/pythonnet/wiki/Troubleshooting-on-Windows,-Linux,-and-OSX

PyPI

pip install pythonnet

See https://pypi.python.org/pypi/pythonnet. Wheels on Windows are available.

GitHub installation from master branch

pip install git+https://github.com/pythonnet/pythonnet

or download the zip archive of master branch (or run git clone https://github.com/pythonnet/pythonnet) and run these commands from unzipped directory:

pip install .

or from pull requests, e.g.:

pip install git+https://github.com/yagweb/pythonnet@add_scope

Windows binaries from master or pull requests

Select job nameartifacts

nuget

We do not provide support for unofficial forks of Python.NET.

The official NuGet package (3.0 preview for Python 3.x) is available:

universal 3.0 previews for Python 3.x on NuGet

conda (Anaconda)

conda install -c conda-forge pythonnet

Development

To install for development, check out the directory and run

python setup.py develop
# or
pip install -e .

for the initial setup and

python setup.py develop

for subsequent updates.