<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Python &#8211; ZhiZhi</title>
	<atom:link href="https://zhizhi.date/archives/category/python/feed" rel="self" type="application/rss+xml" />
	<link>https://zhizhi.date</link>
	<description></description>
	<lastBuildDate>Sun, 03 Dec 2023 19:05:30 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>Debian安装Python 3.10</title>
		<link>https://zhizhi.date/archives/29.html</link>
					<comments>https://zhizhi.date/archives/29.html#respond</comments>
		
		<dc:creator><![CDATA[eswan]]></dc:creator>
		<pubDate>Sun, 03 Dec 2023 19:05:30 +0000</pubDate>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Python]]></category>
		<guid isPermaLink="false">https://eswan.cc/?p=29</guid>

					<description><![CDATA[更新程序包并安装编译依赖环境 开始正式安装]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">更新程序包并安装编译依赖环境</h2>



<pre class="wp-block-code"><code>apt update &amp;&amp; apt upgrade -y
apt install wget build-essential libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev -y
</code></pre>



<h2 class="wp-block-heading">开始正式安装</h2>



<ul class="wp-block-list">
<li>下载Python源码包</li>
</ul>



<pre class="wp-block-code"><code>cd
wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz
</code></pre>



<ul class="wp-block-list">
<li>解压Python源码</li>
</ul>



<pre class="wp-block-code"><code>tar xzf Python-3.10.0.tgz</code></pre>



<ul class="wp-block-list">
<li>编译Python源码</li>
</ul>



<pre class="wp-block-code"><code>cd Python-3.10.0
./configure --enable-optimizations</code></pre>



<ul class="wp-block-list">
<li>安装Python 3.10</li>
</ul>



<pre class="wp-block-code"><code>make altinstall

</code></pre>



<pre class="wp-block-code"><code>apt update &amp;&amp; apt upgrade -y &amp;&amp; apt install wget build-essential libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev -y &amp;&amp; cd &amp;&amp; wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz &amp;&amp; tar xzf Python-3.10.0.tgz &amp;&amp; cd Python-3.10.0 &amp;&amp; ./configure --enable-optimizations &amp;&amp; make altinstall</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://zhizhi.date/archives/29.html/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
