Skip to content

Commit 495197e

Browse files
authored
easier linux installation
pythonnet 2.5.1 is compatible with the newest Mono, so no need to install specific Mono release
1 parent 2a608de commit 495197e

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

README.rst

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ System Requirements
7474
- Windows:
7575
- `.NET Framework <https://dotnet.microsoft.com/download/dotnet-framework>`__ >= 4.6.1 (present in normally updated Windows)
7676
- Linux:
77-
- `Mono <https://www.mono-project.com/download/stable/#download-lin>`__ Common Language Runtime >= 5.2, recommended: 5.20.1
78-
- `pythonnet <http://pythonnet.github.io>`__ >= 2.4
77+
- `Mono <https://www.mono-project.com/download/stable/#download-lin>`__ Common Language Runtime >= 5.2
78+
- `pythonnet <http://pythonnet.github.io>`__ >= 2.5.1
7979
- `FFmpeg <https://ffmpeg.org/download.html>`__ >= 4.1
8080

8181
What's Included
@@ -126,16 +126,6 @@ Check if / which Mono release is present in your system::
126126

127127
If ``mono`` command is not available, or the reported version is < 5.2, visit `Mono download page <https://www.mono-project.com/download/stable/#download-lin>`__ and follow instructions related to your Linux distribution. You want to install **mono-complete** package.
128128

129-
**Note:** pythonnet 2.4.0 is not compatible with Mono 6.0; install Mono 5.20.1 instead::
130-
131-
apt -y install gnupg ca-certificates
132-
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
133-
134-
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic/snapshots/5.20.1 main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
135-
136-
apt update
137-
apt -y install mono-complete
138-
139129
*pythonnet:*
140130

141131
The `pythonnet <http://pythonnet.github.io>`__ package is available from `PyPI <https://pypi.org/project/pythonnet>`__, however, some prerequisities are needed. Instuctions below are based on APT, replace ``apt`` with ``yum`` depending on your OS::
@@ -154,7 +144,7 @@ or in CentOS::
154144
Then, update required packages and install ``pythonnet``::
155145

156146
pip install -U setuptools wheel pycparser
157-
pip install -U pythonnet
147+
pip install -U pythonnet --egg
158148
159149
After successful installation you should be able to do python's import:
160150

0 commit comments

Comments
 (0)