Editing
Multiple python version installs
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== 安裝兩種版本的 Python == === Windows, Mac, Linux 安裝多種版本的 Python 法1 === * 安裝 [https://www.docker.com/get-started Docker Desktop] on {{Win}}, {{Mac}} or {{Linux}} & 安裝 container image *# 安裝 [https://hub.docker.com/_/python python] container image or *# [https://hub.docker.com/r/conda/miniconda3/ conda/miniconda3] or *# [https://hub.docker.com/r/condaforge/miniforge3/tags condaforge/miniforge3 Tags | Docker Hub] * [https://www.anaconda.com/products/individual Anaconda] on {{Win}}, {{Mac}} or {{Linux}}: [https://medium.com/python4u/%E7%94%A8conda%E5%BB%BA%E7%AB%8B%E5%8F%8A%E7%AE%A1%E7%90%86python%E8%99%9B%E6%93%AC%E7%92%B0%E5%A2%83-b61fd2a76566 用conda建立及管理python虛擬環境 - Python4U - Medium] * 安裝 [https://www.virtualbox.org/wiki/Downloads Downloads – Oracle VM VirtualBox] on {{Win}}, {{Mac}} or {{Linux}} & 安裝 [https://www.linuxvmimages.com/ Linux VM Images - Download VirtualBox and VMware Images] {{exclaim}} Not support Apple Silicon on {{Mac}}<ref>[https://forums.virtualbox.org/viewtopic.php?t=98742 virtualbox.org • View topic - ARM Macs: Will Virtualbox be ported ?]</ref> * 安裝 [[Podman]] === Windows 安裝兩種版本的 Python 法2 === Windows 電腦已經安裝 Python2, 想要安裝 Python3 * 直接從 [https://www.python.org/downloads/ Python 網站] 下載安裝 Python3 即可 * [https://www.microsoft.com/zh-tw/p/ubuntu/9nblggh4msv6?SilentAuth=1&wa=wsignin1.0#activetab=pivot:overviewtab 購買 Ubuntu on Windows - Microsoft Store zh-TW],已經內建 Python3,需額外安裝 pip3 * 安裝完 Windows 版本 Python3,已經內建 pip,無需額外安裝 pip {{Tips}} Python2 或 Python3 的安裝前後順序會造成的影響是 {{kbd | key=<nowiki>python -V </nowiki>}} 顯示的是先安裝的版本,可依照下文說明指定要執行的版本。 === Mac 安裝兩種版本的 Python 法2 === 因為 Mac 內建 Python2, 所以需要額外安裝 Python3 * 請參考 [http://docs.python-guide.org/en/latest/starting/install3/osx/ Installing Python 3 on Mac OS X — The Hitchhiker's Guide to Python] & [https://stringpiggy.hpd.io/mac-osx-python3-dual-install/ Mac OSX 正確地同時安裝 Python 2.7 和 Python3 – 字串小豬] * 安裝完 Mac 版本 Python3,已經內建 pip,無需額外安裝 pip === Linux 安裝兩種版本的 Python 法2 === 通常 Linux 已經內建安裝 Python2, 需要額外安裝 Python3 * [https://oranwind.org/python-python-an-zhuang-yu-ji-chu-jiao-xue/ CentOS 7 安裝 Python 3.6] * [https://www.centos.bz/2018/03/centos-7%E5%AE%89%E8%A3%85pip3/ CentOS 7 安装 pip3 - Linux运维日志]
Summary:
Please note that all contributions to LemonWiki共筆 are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
LemonWiki:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Current events
Recent changes
Random page
Help
Categories
Tools
What links here
Related changes
Special pages
Page information