【问题标题】:simplejson build hangsimplejson 构建挂起
【发布时间】:2011-08-11 16:21:15
【问题描述】:

在 Windows 7 32 位上,我无法安装 simplejson。我全新安装了 Python 2.7.1 和 setuptools 0.6c11。 easy_install -v simplejson 在构建 ._speedups 时停止。

Running simplejson-2.1.6\setup.py bdist_egg --dist-dir c:\users\user\appdata\
local\temp\easy_install-jwfwpp\simplejson-2.1.6\egg-dist-tmp-0zkmua
Importing new compiler from distutils.msvc9compiler
running bdist_egg
running egg_info
writing simplejson.egg-info\PKG-INFO
writing top-level names to simplejson.egg-info\top_level.txt
writing dependency_links to simplejson.egg-info\dependency_links.txt
reading manifest file 'simplejson.egg-info\SOURCES.txt'
writing manifest file 'simplejson.egg-info\SOURCES.txt'
installing library code to build\bdist.win32\egg
running install_lib
running build_py
creating build
creating build\lib.win32-2.7
creating build\lib.win32-2.7\simplejson
copying simplejson\decoder.py -> build\lib.win32-2.7\simplejson
copying simplejson\encoder.py -> build\lib.win32-2.7\simplejson
copying simplejson\ordered_dict.py -> build\lib.win32-2.7\simplejson
copying simplejson\scanner.py -> build\lib.win32-2.7\simplejson
copying simplejson\tool.py -> build\lib.win32-2.7\simplejson
copying simplejson\__init__.py -> build\lib.win32-2.7\simplejson
creating build\lib.win32-2.7\simplejson\tests
copying simplejson\tests\test_check_circular.py -> build\lib.win32-2.7\simplejso
n\tests
copying simplejson\tests\test_decimal.py -> build\lib.win32-2.7\simplejson\tests

copying simplejson\tests\test_decode.py -> build\lib.win32-2.7\simplejson\tests
copying simplejson\tests\test_default.py -> build\lib.win32-2.7\simplejson\tests

copying simplejson\tests\test_dump.py -> build\lib.win32-2.7\simplejson\tests
copying simplejson\tests\test_encode_basestring_ascii.py -> build\lib.win32-2.7\
simplejson\tests
copying simplejson\tests\test_encode_for_html.py -> build\lib.win32-2.7\simplejs
on\tests
copying simplejson\tests\test_errors.py -> build\lib.win32-2.7\simplejson\tests
copying simplejson\tests\test_fail.py -> build\lib.win32-2.7\simplejson\tests
copying simplejson\tests\test_float.py -> build\lib.win32-2.7\simplejson\tests
copying simplejson\tests\test_indent.py -> build\lib.win32-2.7\simplejson\tests
copying simplejson\tests\test_pass1.py -> build\lib.win32-2.7\simplejson\tests
copying simplejson\tests\test_pass2.py -> build\lib.win32-2.7\simplejson\tests
copying simplejson\tests\test_pass3.py -> build\lib.win32-2.7\simplejson\tests
copying simplejson\tests\test_recursion.py -> build\lib.win32-2.7\simplejson\tes
ts
copying simplejson\tests\test_scanstring.py -> build\lib.win32-2.7\simplejson\te
sts
copying simplejson\tests\test_separators.py -> build\lib.win32-2.7\simplejson\te
sts
copying simplejson\tests\test_speedups.py -> build\lib.win32-2.7\simplejson\test
s
copying simplejson\tests\test_unicode.py -> build\lib.win32-2.7\simplejson\tests

copying simplejson\tests\__init__.py -> build\lib.win32-2.7\simplejson\tests
running build_ext
building 'simplejson._speedups' extension

有一个 cmd.exe 无限期地以大约 15% 的 CPU 使用率搅动。我让它运行了约 30 分钟。我只在一台机器上看到过这种行为,但可能是什么问题?

【问题讨论】:

    标签: python setuptools


    【解决方案1】:

    我认为在 2.7 上安装 simplejson 没有用,因为它可以作为 stdlib 中的 json 模块使用

    【讨论】:

    • 哦。那很好。很高兴从我的设置中迈出这一步。
    【解决方案2】:

    不要将 Visual Studio 安装到非标准位置。 setuptools 似乎找不到它。 easy_install 最终对 MSVC 感到满意,要么删除(在这种情况下没有编译加速),要么在默认安装路径中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-07-16
      • 1970-01-01
      • 1970-01-01
      • 2020-05-22
      • 1970-01-01
      • 2017-06-20
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多