python3和python3.9
时间: 2023-10-26 11:07:46 浏览: 116
Python3是指向Python3.5的软链接,而Python3.9是通过将/usr/local/python3/bin/python3.9软链接到/usr/bin/python3来设置的。而pip3和pip3.9是指向同一个可执行文件的软链接,可以通过在/usr/bin/目录下添加这两个文件的软链接来设置。具体的步骤是,先执行ll /usr/local/python3/bin查看安装后的可执行文件,然后删除之前的python和python3软链接,最后通过sudo ln -s /usr/local/python3/bin/python3.9 /usr/bin/python3和sudo ln -s /usr/local/python3/bin/pip3.9 /usr/bin/pip3来设置新的软链接。这样就可以将python3和python3.9以及pip3和pip3.9正确设置为对应的版本。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [Ubuntu16 安装 Python3.9](https://blog.csdn.net/weixin_42482896/article/details/107460100)[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_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文