【问题标题】:Error installing Buster for Ghost为 Ghost 安装 Buster 时出错
【发布时间】:2014-10-14 12:46:06
【问题描述】:

在 Windows 7 Buster 上安装 Ghost 的蛮力静态站点生成器时出现错误。

我正在使用pip 安装它: $ pip install buster

然后弹出一个错误:

Downloading/unpacking async==0.6.1 (from buster)
Downloading async-0.6.1.tar.gz
Running setup.py (path:C:\Users\oem\AppData\Local\Temp\pip_build_oem\async\setup.py)     egg_info for package async
Traceback (most recent call last):
File "", line 17, in 
File "C:\Users\oem\AppData\Local\Temp\pip_build_oem\async\setup.py", line 24
print "Ignored failure when building extensions, pure python modules will be used instead"
^SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "", line 17, in
File "C:\Users\oem\AppData\Local\Temp\pip_build_oem\async\setup.py", line 24

【问题讨论】:

    标签: python-3.x pip ghost-blog


    【解决方案1】:

    我的网站也有类似的问题。

    您的 python 版本太高。下载安装python 2.7,应该就可以了。

    您还需要为 windows 安装 wget。

    【讨论】:

    • 你说得对,降级到 Python 2.7.x 解决了这个问题。另请注意,Ghost 版本 > 0.4 与 Buster 一起使用时会导致一些其他问题(无法完全复制图像、错误的 css 和 js 文件名等)。
    • 我还必须安装 pip/ 我下载了这个文件:raw.githubusercontent.com/pypa/pip/master/contrib/get-pip.py 并从命令行运行它。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-07-30
    • 1970-01-01
    • 2020-07-04
    • 1970-01-01
    • 1970-01-01
    • 2020-02-07
    相关资源
    最近更新 更多