simplejson 构建挂起
在 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 分钟。我只在一台机器上看到过这种行为,但这可能是什么问题呢?
On windows 7 32-bit I'm having trouble getting simplejson installed. I have fresh installs of Python 2.7.1 and setuptools 0.6c11. easy_install -v simplejson
stalls when building ._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
There is a cmd.exe churning at about 15% cpu usage indefinitely. I've let it run for ~30 minutes. I've only seen this behavior on a single machine, but what could be the problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为在 2.7 上安装 simplejson 没有用,因为它可以作为 stdlib 中的 json 模块使用
I think that installing simplejson on 2.7 is not usefull as it is available as json module in stdlib
不要将 Visual Studio 安装到非标准位置。 setuptools 似乎找不到它。 easy_install 最终对 MSVC 感到满意,要么删除了 MSVC(在这种情况下没有编译加速),要么放在默认安装路径中。
Don't install visual studio to a non-standard location. setuptools can't seem to find it. easy_install ended up being happy with MSVC either removed (in which case no speedups were compiled) or in the default installation path.