anaconda的安裝指令為conda,安裝方式同pip
pip install pymongo
這邊我們改用
conda install pymongo
結果如下:
----
(C:\Users\Malo\Anaconda2) C:\Users\Malo>conda install pymongo
Fetching package metadata ...........
Solving package specifications: .
Package plan for installation in environment C:\Users\Malo\Anaconda2:
The following NEW packages will be INSTALLED:
pymongo: 3.4.0-py27_0
The following packages will be UPDATED:
conda: 4.3.21-py27_0 --> 4.3.24-py27_0
Proceed ([y]/n)?
pymongo-3.4.0- 100% |###############################| Time: 0:00:00 560.62 kB/s
conda-4.3.24-p 100% |###############################| Time: 0:00:04 131.37 kB/s
----
裝好了,測試如下
from pymongo import MongoClient
如果正常執行沒出錯,表示 pymongo就裝好了
沒有留言:
張貼留言