simplejson生成挂起

2024-05-12 23:05:34 发布

您现在位置:Python中文网/ 问答频道 /正文

在32位的Windows7上,我无法安装simplejson。我刚安装了python2.7.1和setuptools 0.6c11。easy_install -v simplejson生成时暂停。\u加速。在

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

有一个命令行命令行以大约15%的cpu使用率无限期地流失。我让它运行了大约30分钟。我只在一台机器上见过这种行为,但问题出在哪里呢?在


Tags: installpytestbuildinfocreatingtxtegg
2条回答

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

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

相关问题 更多 >