<?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; 良的世界</title>
	<atom:link href="https://www.lemonary.cn/tag/python/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.lemonary.cn</link>
	<description></description>
	<lastBuildDate>Sun, 26 Jan 2025 03:29:58 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://www.lemonary.cn/wp-content/uploads/2024/12/profile-150x150.jpg</url>
	<title>Python &#8211; 良的世界</title>
	<link>https://www.lemonary.cn</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>CentOS系统安装Python3.7.8</title>
		<link>https://www.lemonary.cn/centos%e7%b3%bb%e7%bb%9f%e5%ae%89%e8%a3%85python3-7-8/</link>
					<comments>https://www.lemonary.cn/centos%e7%b3%bb%e7%bb%9f%e5%ae%89%e8%a3%85python3-7-8/#respond</comments>
		
		<dc:creator><![CDATA[shine]]></dc:creator>
		<pubDate>Wed, 01 Jan 2025 07:51:43 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<guid isPermaLink="false">https://www.lemonary.cn/?p=1236</guid>

					<description><![CDATA[原文链接：https://www.cnblogs.com/dnfhao/p/13738610.html 详细安 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p class="wp-block-paragraph">原文链接：<a href="https://www.cnblogs.com/dnfhao/p/13738610.html" target="_blank" rel="noopener">https://www.cnblogs.com/dnfhao/p/13738610.html</a></p>
</blockquote>



<p class="wp-block-paragraph">详细安装步骤如下：</p>



<p class="wp-block-paragraph">（1）下载Python3.7.8</p>



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



<p class="wp-block-paragraph">（2）解压</p>



<pre class="wp-block-code"><code>tar -xvf Python-3.7.8.tgz</code></pre>



<p class="wp-block-paragraph">（3）配置编译</p>



<pre class="wp-block-code"><code>cd Python-3.7.8
./configure --prefix=/usr/local/python3 # 配置编译的的路径（这里--prefix是指定编译安装的文件夹）
./configure --enable-optimizations # 执行该代码后，会编译安装到 /usr/local/bin/ 下，且不用添加软连接或环境变量
make &amp;&amp; make install
ln -s /usr/local/python3/bin/python3 /usr/bin/python3 # 添加软连接
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3</code></pre>



<p class="wp-block-paragraph">（4）配置环境变量</p>



<p class="wp-block-paragraph">将/usr/local/python3/bin加入PATH</p>



<pre class="wp-block-code"><code>vim /etc/profile
#然后在文件末尾添加
export PATH=$PATH:/usr/local/python3/bin
# 修改完后，还需要让这个环境变量在配置信息中生效，执行命令
source /etc/profile</code></pre>



<p class="wp-block-paragraph">（5）验证</p>



<pre class="wp-block-code"><code>python3 --version
或者
python3 执行交互界面也能看到Python版本。</code></pre>
]]></content:encoded>
					
					<wfw:commentRss>https://www.lemonary.cn/centos%e7%b3%bb%e7%bb%9f%e5%ae%89%e8%a3%85python3-7-8/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
