1. sudo apt-get install build-essential python-dev 2. python 3. 輸入: import pymongo 4. 如果沒有錯誤 那麼pymongo安裝成功