Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gjmzj committed Jun 13, 2018
1 parent 1eca6b0 commit 1b5fba6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions docs/00-集群规划和基础参数设定.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,29 @@ yum install git python-pip -y
pip install pip --upgrade -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
pip install --no-cache-dir ansible -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
```

`Ubuntu 16.04`中,如果出现以下错误:

``` bash
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
from pip import main
ImportError: cannot import name main
```
`/usr/bin/pip`做以下修改:

``` bash
#原代码
from pip import main
if __name__ == '__main__':
sys.exit(main())

#修改后
from pip import __main__
if __name__ == '__main__':
sys.exit(__main__._main())
```
### 4.在deploy节点配置免密码登陆
``` bash
Expand Down
2 changes: 1 addition & 1 deletion docs/quickStart.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Traceback (most recent call last):
from pip import main
ImportError: cannot import name main
```
`/usr/bin/python`做以下修改:
`/usr/bin/pip`做以下修改:

``` bash
#原代码
Expand Down

0 comments on commit 1b5fba6

Please sign in to comment.