Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Installation

lidanger edited this page May 9, 2019 · 3 revisions

如果你在安装过程中遇到问题,那么这里是故障排除 wiki:

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

PyPI

pip install pythonnet

https://pypi.python.org/pypi/pythonnet

Windows 上的轮子是可用的。

TODO: Manylinux Wheels.

从 GitHub 主分支安装

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

或下载主分支的 zip 归档文件 (或运行 git clone https://github.com/pythonnet/pythonnet) 并在解压缩目录运行以下命令:

  • python setup.py bdist_wheel --xplat
    remove --xplat to use Mono on OSX and Linux, or to avoid .NET Core builds on Windows.

  • pip install --no-index --find-links=.\dist\ pythonnet
    (Windows, use /dist/ on Linux)

或者从 pull 请求中,例如:

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

来自主分支或 pull 请求的 Windows 二进制文件

选择 job nameartifacts

Docker

nuget

WinPython

conda (Anaconda)

conda install -c pythonnet pythonnet
pip install -i https://pypi.anaconda.org/pythonnet/simple pythonnet

chocolatey (只支持 Python 2.7, x86)

choco install pythonnet -pre

Python 扩展包的非官方 Windows 二进制文件

Clone this wiki locally