小编dar*_*onz的帖子

哪个页面布局更正确?

通过<main>在HTML5草案规范中添加元素,哪个页面布局更正确?

<body>
    <header> ... </header>
    <main>
        <aside> ... </aside>
    </main>
    <footer> ... </footer>
</body>
Run Code Online (Sandbox Code Playgroud)

要么;

<body>
    <header> ... </header>
    <section>
        <main> ... </main>
        <aside> ... </aside>
    </section>
    <footer> ... </footer>
</body>
Run Code Online (Sandbox Code Playgroud)

html5

4
推荐指数
1
解决办法
546
查看次数

让Fabric使用Homebrew和PIP在Mountain Lion上工作

我似乎无法让Fabric正常运行.我发现这篇文章并没有解决我使Fabric Fabric Python库工作的问题

我使用Homebrew安装了Python brew install python(这也安装了PIP):

跑步which python我得到:

/usr/local/Cellar/python/2.7.3/bin/python
Run Code Online (Sandbox Code Playgroud)

然后我安装了面料 pip install fabric

Requirement already satisfied (use --upgrade to upgrade): fabric in /usr/local/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): ssh>=1.7.14 in /usr/local/lib/python2.7/site-packages (from fabric)
Requirement already satisfied (use --upgrade to upgrade): pycrypto>=2.1,!=2.4 in /usr/local/lib/python2.7/site-packages (from ssh>=1.7.14->fabric)
Run Code Online (Sandbox Code Playgroud)

另一篇文章表明,面料将位于 /usr/local/Cellar/python/2.7.1/bin/fab

ls在上面做一个(但在我的情况下是2.7.3)得到以下(没有结构).

lrwxr-xr-x   1 darron  staff   80 Oct 26 17:37 2to3 -> /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/bin/2to3
lrwxr-xr-x   1 darron  staff   82 Oct 26 17:37 2to3-2 -> /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/bin/2to3-2
lrwxr-xr-x   1 …
Run Code Online (Sandbox Code Playgroud)

homebrew pip fabric python-2.7 osx-mountain-lion

3
推荐指数
1
解决办法
3063
查看次数

标签 统计

fabric ×1

homebrew ×1

html5 ×1

osx-mountain-lion ×1

pip ×1

python-2.7 ×1