Multiple python version installs: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
Line 25: Line 25:
<pre>
<pre>
$ python -V  
$ python -V  
$ python -version
$ py -2 -V
$ py -2 -V
預期看到 Python 2.7.8 或其他 2.x 版本
預期看到 Python 2.7.8 或其他 2.x 版本
Line 63: Line 64:
$ pip3 -V
$ pip3 -V
pip 9.0.1 from /usr/local/lib/python3.6/site-packages (python 3.6) 代表是可以用 pip3 安裝 python3 的套件
pip 9.0.1 from /usr/local/lib/python3.6/site-packages (python 3.6) 代表是可以用 pip3 安裝 python3 的套件
</pre>
== 更新 pip (package_manager) 版本<ref>[http://softwaretester.info/install-and-upgrade-pip-on-mac-os-x/ Install and upgrade pip on Mac OS X | - Softwaretester -]</ref> ==
=== Windows ===
<pre>
已知 py -2 -V 版本是 python2
$ py -2 -m pip install --upgrade pip
已知 python3 -V 版本是 python2
$ python3 -m pip install --upgrade pip
</pre>
=== Mac & Linux ===
確認 pip 版本
<pre>
已知 pip -V 版本是 python2
$ pip install --upgrade pip
已知 pip3 -V 版本是 python3
$ pip3 install --upgrade pip setuptools wheel
</pre>
</pre>


Navigation menu