mongodb 4.0.3 源码编译【2】win10 安装 mongodb 所需 python2 及相关模块

本文详细介绍了在Win10系统中,如何下载安装Python 2.7.15,并解决编译MongoDB 4.0.3过程中遇到的pip版本过低、下载超时等问题,以及手动安装升级pip和所需Python模块的步骤。

1 python2.7.15 下载,安装

https://www.python.org/downloads/release/python-2715/

python-2.7.15.amd64.msi 安装文件

2 安装 mongodb 编译所需的 python 模块


cmd > F:
cmd > cd mongodb-src-r4.0.3

 【指令:安装所需模块】
F:\mongodb-src-r4.0.3>pip2 install -r buildscripts/requirements.txt

 

【问题#1】

Ignoring mypy: markers 'python_version > "3"' don't match your environment
Ignoring pypiwin32: markers 'sys_platform == "win32" and python_version > "3"' don't match your environment
Ignoring subprocess32: markers 'os_name == "posix" and python_version < "3"' don't match your environment
Collecting cryptography==1.7.2 (from -r buildscripts/requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/5e/fa/42ef9b4ef3a69713a13790d76432287aeb1db89723dbde91b404fc762362/cryptography-1.7.2-cp27-cp27m-win_amd64.whl (1.3MB)
    15% |████▉                           | 194kB 8.7kB/s eta 0:02:06Exception:
Traceback (most recent call last):
  File "d:\programfiles\python2.7.15\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "d:\programfiles\python2.7.15\lib\site-packages\pip\commands\install.py", line 324, in run
    requirement_set.prepare_files(finder)
  File "d:\programfiles\python2.7.15\lib\site-packages\pip\req\req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "d:\programfiles\python2.7.15\lib\site-packages\pip\req\req_set.py", line 620, in _prepar

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值