linux安装python37
时间: 2023-09-07 08:18:09 浏览: 59
在Linux上安装Python 3.7,可以按照以下步骤进行操作:
1. 首先,运行命令`apt-get install build-essential python-dev python-setuptools python-pip python-smbus`来安装Python所需的一些依赖库。
2. 然后,你可以从Python官方网站下载Python 3.7的源代码,网址是https://www.python.org/downloads/release/python-370/。你可以在下载页面选择适合你系统的源代码包。
3. 下载完成后,解压缩源代码包并进入解压后的目录。
4. 在终端中执行以下命令来配置和编译Python 3.7的安装:
```
./configure
make
sudo make install
```
5. 安装完成后,执行以下命令来设置软链接:
```
ln -s /usr/python/bin/python3.7 /usr/bin/python3
ln -s /usr/python/bin/pip3.7 /usr/bin/pip3
```
这样,你就可以通过`python3`命令来运行Python 3.7,通过`pip3`命令来安装Python包了。
请注意,具体的安装步骤可能会因操作系统的不同而有所差异,以上步骤仅作为参考。建议在安装前先阅读相关文档或操作系统的官方文档以获得更准确的安装指导。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [python37安装教程-Linux 安装Python37](https://blog.csdn.net/weixin_39744408/article/details/109620287)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [linux安装python3.7](https://blog.csdn.net/zzguo1224/article/details/116116958)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![-](https://csdnimg.cn/download_wenku/file_type_column_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)