<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kodi.wiki/index.php?action=history&amp;feed=atom&amp;title=Archive%3AUpgrade_Python_interpreter_on_Linux</id>
	<title>Archive:Upgrade Python interpreter on Linux - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kodi.wiki/index.php?action=history&amp;feed=atom&amp;title=Archive%3AUpgrade_Python_interpreter_on_Linux"/>
	<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Upgrade_Python_interpreter_on_Linux&amp;action=history"/>
	<updated>2026-05-26T18:26:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Upgrade_Python_interpreter_on_Linux&amp;diff=219777&amp;oldid=prev</id>
		<title>Karellen: Karellen moved page HOW-TO:Upgrade Python interpreter on Linux to Archive:Upgrade Python interpreter on Linux without leaving a redirect: Outdated</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Upgrade_Python_interpreter_on_Linux&amp;diff=219777&amp;oldid=prev"/>
		<updated>2020-08-29T21:33:29Z</updated>

		<summary type="html">&lt;p&gt;Karellen moved page &lt;a href=&quot;/index.php?title=HOW-TO:Upgrade_Python_interpreter_on_Linux&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;HOW-TO:Upgrade Python interpreter on Linux (page does not exist)&quot;&gt;HOW-TO:Upgrade Python interpreter on Linux&lt;/a&gt; to &lt;a href=&quot;/view/Archive:Upgrade_Python_interpreter_on_Linux&quot; title=&quot;Archive:Upgrade Python interpreter on Linux&quot;&gt;Archive:Upgrade Python interpreter on Linux&lt;/a&gt; without leaving a redirect: Outdated&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:33, 29 August 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Karellen</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Upgrade_Python_interpreter_on_Linux&amp;diff=128872&amp;oldid=prev</id>
		<title>Niklas Holm: /* Launch Kodi */ fix typo</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Upgrade_Python_interpreter_on_Linux&amp;diff=128872&amp;oldid=prev"/>
		<updated>2017-04-04T13:57:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Launch Kodi: &lt;/span&gt; fix typo&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:57, 4 April 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l29&quot;&gt;Line 29:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 29:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;obliviously &lt;/del&gt;replace &quot;/&amp;lt;path&amp;gt;/&amp;lt;to&amp;gt;/&amp;lt;miniconda&amp;gt;&quot; with wherever you installed miniconda)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;(&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;obviously &lt;/ins&gt;replace &quot;/&amp;lt;path&amp;gt;/&amp;lt;to&amp;gt;/&amp;lt;miniconda&amp;gt;&quot; with wherever you installed miniconda)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== Modify the .desktop-file (optional) ====&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==== Modify the .desktop-file (optional) ====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Niklas Holm</name></author>
	</entry>
	<entry>
		<id>https://kodi.wiki/index.php?title=Archive:Upgrade_Python_interpreter_on_Linux&amp;diff=128870&amp;oldid=prev</id>
		<title>Niklas Holm: Created page with &quot;{{mininav|Development|Add-on development|Python development}}  {{Notice|This is for Linux only. Other platforms uses a built-in Python interpreter shipped with Kod...&quot;</title>
		<link rel="alternate" type="text/html" href="https://kodi.wiki/index.php?title=Archive:Upgrade_Python_interpreter_on_Linux&amp;diff=128870&amp;oldid=prev"/>
		<updated>2017-04-04T13:35:24Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{mininav|&lt;a href=&quot;/view/Development&quot; title=&quot;Development&quot;&gt;Development&lt;/a&gt;|&lt;a href=&quot;/view/Add-on_development&quot; title=&quot;Add-on development&quot;&gt;Add-on development&lt;/a&gt;|&lt;a href=&quot;/view/Python_development&quot; class=&quot;mw-redirect&quot; title=&quot;Python development&quot;&gt;Python development&lt;/a&gt;}}  {{Notice|This is for Linux only. Other platforms uses a built-in Python interpreter shipped with Kod...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{mininav|[[Development]]|[[Add-on development]]|[[Python development]]}}&lt;br /&gt;
&lt;br /&gt;
{{Notice|This is for Linux only. Other platforms uses a built-in Python interpreter shipped with Kodi.}}&lt;br /&gt;
&lt;br /&gt;
If you have TLS-handshake errors with some plugin(s) in Kodi under Linux, this page is for you. The problem is caused by an outdated system-wide Python 2 interpreter installed on your system. Some users may instinctively attempt to upgrade the system-wide Python interpreter, from source, from a PPA, using a third-party package manager or whatever. &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;Do not do that!&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; Python is an integral part of many distributions, including Ubuntu, and messing with the vendor-supplied interpreter may cause all kinds of problems. This method uses Miniconda and a modified environment to launch Kodi with it&amp;#039;s very own, updated Python interpreter.&lt;br /&gt;
&lt;br /&gt;
== Procedure ==&lt;br /&gt;
{{Note|This procedure is tested on Ubuntu 14.04 LTS}}&lt;br /&gt;
&lt;br /&gt;
=== Prerequisites ===&lt;br /&gt;
* Miniconda. To download and install follow the instructions [https://conda.io/docs/install/quick.html#linux-miniconda-install here].&lt;br /&gt;
* BlueZ development files to compile PyBluez. Install with&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
$ sudo apt-get install libbluetooth-dev&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Create the environment ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
$ conda create --name kodi python=2.7&lt;br /&gt;
$ source activate kodi&lt;br /&gt;
(kodi) $ conda install simplejson pillow&lt;br /&gt;
(kodi) $ pip install PyBluez PIL-compat&lt;br /&gt;
(kodi) $ source deactivate&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Launch Kodi ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
$ env PATH=&amp;quot;/&amp;lt;path&amp;gt;/&amp;lt;to&amp;gt;/&amp;lt;miniconda&amp;gt;/envs/kodi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin&amp;quot; LD_LIBRARY_PATH=&amp;quot;/&amp;lt;path&amp;gt;/&amp;lt;to&amp;gt;/&amp;lt;miniconda&amp;gt;/envs/kodi/lib&amp;quot; kodi&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
(obliviously replace &amp;quot;/&amp;lt;path&amp;gt;/&amp;lt;to&amp;gt;/&amp;lt;miniconda&amp;gt;&amp;quot; with wherever you installed miniconda)&lt;br /&gt;
&lt;br /&gt;
==== Modify the .desktop-file (optional) ====&lt;br /&gt;
You can also put the above command inside your .desktop-file to enable launching directly from your desktop environment.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot; enclose=&amp;quot;div&amp;quot;&amp;gt;&lt;br /&gt;
$ mkdir -p ~/.local/share/applications&lt;br /&gt;
$ x=&amp;quot;/&amp;lt;path&amp;gt;/&amp;lt;to&amp;gt;/&amp;lt;miniconda&amp;gt;/envs/kodi&amp;quot;&lt;br /&gt;
$ sed &amp;#039;s|Exec=kodi|Exec=env PATH=&amp;quot;&amp;#039;&amp;quot;${x}&amp;quot;&amp;#039;/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin&amp;quot; LD_LIBRARY_PATH=&amp;quot;&amp;#039;&amp;quot;${x}&amp;quot;&amp;#039;/lib&amp;quot; kodi|g&amp;#039; /usr/share/applications/kodi.desktop &amp;gt; ~/.local/share/applications/kodi.desktop&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{forum link2|[[forum:307169#pid2534910|Original forum post]]}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Like}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Python]]&lt;br /&gt;
[[Category:How-to]]&lt;/div&gt;</summary>
		<author><name>Niklas Holm</name></author>
	</entry>
</feed>