2011-08-11 51 views
0

在Windows 7 32位我无法安装simplejson。我有新的安装Python 2.7.1和setuptools 0.6c11。 easy_install -v simplejson当建立._speedups时失速。simplejson构建挂起

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分钟。我只在一台机器上看到过这种行为,但是这可能是什么问题?

回答

0

我认为在2.7上安装simplejson并不是有用的,因为它在stdlib中作为json模块可用

+0

哦。这很好。很高兴能从我的设置中走出这一步。 – totowtwo

0

请勿将Visual Studio安装到非标准位置。 setuptools似乎无法找到它。 easy_install最终对MSVC感到满意或者被删除(在这种情况下没有编译加速)或者默认安装路径。