感谢
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)
解决:
- 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.
解决:确认电脑是否安装了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)
接着等待部署就可以了。