FreeBSD 安裝python 很簡單,使用 pkg 安裝即可:
sudo pkg install python
安裝畫面如下所示:
密碼:
Updating FreeBSD repository catalogue...
Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
Fetching packagesite.txz: 100% 6 MiB 6.5MB/s 00:01
Processing entries: 100%
FreeBSD repository update completed. 31528 packages processed.
All repositories are up to date.
The following 3 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
python: 3.7_3,2
python37: 3.7.6
python3: 3_3
Number of packages to be installed: 3
The process will require 107 MiB more space.
16 MiB to be downloaded.
Proceed with this action? [y/N]: y
[1/3] Fetching python-3.7_3,2.txz: 100% 996 B 1.0kB/s 00:01
[2/3] Fetching python37-3.7.6.txz: 100% 16 MiB 16.4MB/s 00:01
[3/3] Fetching python3-3_3.txz: 100% 1 KiB 1.1kB/s 00:01
Checking integrity... done (0 conflicting)
[1/3] Installing python37-3.7.6...
[1/3] Extracting python37-3.7.6: 100%
[2/3] Installing python3-3_3...
[2/3] Extracting python3-3_3: 100%
[3/3] Installing python-3.7_3,2...
[3/3] Extracting python-3.7_3,2: 100%
=====
Message from python37-3.7.6:
--
Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:
py37-gdbm databases/py-gdbm@py37
py37-sqlite3 databases/py-sqlite3@py37
py37-tkinter x11-toolkits/py-tkinter@py37
預設就是安裝 Python 3,現在裝好就有 pip 可以用,不用另外安裝。