在32位的windows7上,我在安装simplejson时遇到了问题。我有新安装的Python 2.7.1和setuptools 0.6c11。在构建._speedups时,easy_install -v 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' extensioncmd.exe的使用率无限期地在15%左右。我让它运行了大约30分钟。我只在一台机器上看到过这种行为,但是会有什么问题呢?
发布于 2011-08-12 02:56:46
我认为在2.7上安装simplejson并不是很有用,因为它在stdlib中可以作为json模块使用。
发布于 2011-08-12 01:36:59
不要将visual studio安装到非标准位置。setuptools似乎找不到它。easy_install最终对删除MSVC (在这种情况下没有编译加速)或使用默认安装路径感到满意。
https://stackoverflow.com/questions/7029402
复制相似问题