IPFS应用(ipfs-search)中出现的错误Bug解决

感谢 https://github.com/ipfs-search/ipfs-search之源码分享,本文涉及的问题都只针对Windows环境开发:
  • pip

安装pip之前,需要安装python环境,去官网下就行,版本我使用的是3.6.5(环境变量配置,略)

pip install <filename> -需要的包

pip安装时,报错:

error: Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)

解决:

下载Visual Studio


  • Ansible

项目需要2.3以下版本兼容,去资源库下载tar.gz包,我下的时2.2.0.0

地址:https://github.com/ansible/ansible/releases

然后使用命令安装即可: 

pip install xxx.gz
  • Vagrant

在使用vagrant up时,报错:

No usable default provider could be found for your system.

Vagrant relies on interactions with 3rd party systems, known as
"providers", to provide Vagrant with resources to run development
environments. Examples are VirtualBox, VMware, Hyper-V.

The easiest solution to this message is to install VirtualBox, which
is available for free on all major platforms.

If you believe you already have a provider available, make sure it
is properly installed and configured. You can see more details about
why a particular provider isn't working by forcing usage with
`vagrant up --provider=PROVIDER`, which should give you a more specific
error message for that particular provider.

官网:https://www.vagrantup.com/



解决:确认电脑是否安装了VBox,VMware,Hyper-V,以VBox(5.2版本,看StackOverflow上说,5.1好像不兼容,我没试过)为例,官网下载后,一路下一步就可以了

$>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'ubuntu/xenial64' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'ubuntu/xenial64'
    default: URL: https://vagrantcloud.com/ubuntu/xenial64
==> default: Adding box 'ubuntu/xenial64' (v20180511.0.0) for provider: virtualbox
    default: Downloading: https://vagrantcloud.com/ubuntu/boxes/xenial64/versions/20180511.0.0/providers/virtualbox.box
    default: Download redirected to host: cloud-images.ubuntu.com
    default: Progress: 58% (Rate: 97698/s, Estimated time remaining: 0:42:50)

接着等待部署就可以了。

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值