Windows XP下, Simplejson安装方法

来源:互联网 发布:关闭淘宝店铺 编辑:程序博客网 时间:2024/06/08 11:19

总共3个步骤:

1。 下载

http://pypi.python.org/pypi/simplejson/


2 。解压

例如:下面例子解压到:D:/django/simplejson



3 。安装

如下内容为Simplejson安装过程…

D:/django/simplejson>python setup.py install

---------------------------------------------------------------------------
This script requires setuptools version 0.6c7 to run (even to display
help).  I will attempt to download it for you (from
http://pypi.python.org/packages/2.5/s/setuptools/), but
you may need to enable firewall access for this script first.
I will start the download in 15 seconds.

(Note: if this machine does not have network access, please obtain the file

   http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c7-py2.5.egg

and place it in this directory before rerunning this script.)
---------------------------------------------------------------------------
Downloading http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c7-py
2.5.egg
running install
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
writing entry points to simplejson.egg-info/entry_points.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.5
creating build/lib.win32-2.5/simplejson
copying simplejson/decoder.py -> build/lib.win32-2.5/simplejson
copying simplejson/encoder.py -> build/lib.win32-2.5/simplejson
copying simplejson/jsonfilter.py -> build/lib.win32-2.5/simplejson
copying simplejson/scanner.py -> build/lib.win32-2.5/simplejson
copying simplejson/__init__.py -> build/lib.win32-2.5/simplejson
creating build/lib.win32-2.5/simplejson/tests
copying simplejson/tests/test_decode.py -> build/lib.win32-2.5/simplejson/tests
copying simplejson/tests/test_default.py -> build/lib.win32-2.5/simplejson/tests

copying simplejson/tests/test_dump.py -> build/lib.win32-2.5/simplejson/tests
copying simplejson/tests/test_fail.py -> build/lib.win32-2.5/simplejson/tests
copying simplejson/tests/test_float.py -> build/lib.win32-2.5/simplejson/tests
copying simplejson/tests/test_indent.py -> build/lib.win32-2.5/simplejson/tests
copying simplejson/tests/test_pass1.py -> build/lib.win32-2.5/simplejson/tests
copying simplejson/tests/test_pass2.py -> build/lib.win32-2.5/simplejson/tests
copying simplejson/tests/test_pass3.py -> build/lib.win32-2.5/simplejson/tests
copying simplejson/tests/test_recursion.py -> build/lib.win32-2.5/simplejson/tes
ts
copying simplejson/tests/test_separators.py -> build/lib.win32-2.5/simplejson/te
sts
copying simplejson/tests/test_unicode.py -> build/lib.win32-2.5/simplejson/tests

copying simplejson/tests/__init__.py -> build/lib.win32-2.5/simplejson/tests
running build_ext
**********************************************************************
WARNING: The C extension could not be compiled, speedups are not enabled.

Below is the output showing how the compilation failed:

Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.
**********************************************************************
creating build/bdist.win32
creating build/bdist.win32/egg
creating build/bdist.win32/egg/simplejson
copying build/lib.win32-2.5/simplejson/decoder.py -> build/bdist.win32/egg/simpl
ejson
copying build/lib.win32-2.5/simplejson/encoder.py -> build/bdist.win32/egg/simpl
ejson
copying build/lib.win32-2.5/simplejson/jsonfilter.py -> build/bdist.win32/egg/si
mplejson
copying build/lib.win32-2.5/simplejson/scanner.py -> build/bdist.win32/egg/simpl
ejson
creating build/bdist.win32/egg/simplejson/tests
copying build/lib.win32-2.5/simplejson/tests/test_decode.py -> build/bdist.win32
/egg/simplejson/tests
copying build/lib.win32-2.5/simplejson/tests/test_default.py -> build/bdist.win3
2/egg/simplejson/tests
copying build/lib.win32-2.5/simplejson/tests/test_dump.py -> build/bdist.win32/e
gg/simplejson/tests
copying build/lib.win32-2.5/simplejson/tests/test_fail.py -> build/bdist.win32/e
gg/simplejson/tests
copying build/lib.win32-2.5/simplejson/tests/test_float.py -> build/bdist.win32/
egg/simplejson/tests
copying build/lib.win32-2.5/simplejson/tests/test_indent.py -> build/bdist.win32
/egg/simplejson/tests
copying build/lib.win32-2.5/simplejson/tests/test_pass1.py -> build/bdist.win32/
egg/simplejson/tests
copying build/lib.win32-2.5/simplejson/tests/test_pass2.py -> build/bdist.win32/
egg/simplejson/tests
copying build/lib.win32-2.5/simplejson/tests/test_pass3.py -> build/bdist.win32/
egg/simplejson/tests
copying build/lib.win32-2.5/simplejson/tests/test_recursion.py -> build/bdist.wi
n32/egg/simplejson/tests
copying build/lib.win32-2.5/simplejson/tests/test_separators.py -> build/bdist.w
in32/egg/simplejson/tests
copying build/lib.win32-2.5/simplejson/tests/test_unicode.py -> build/bdist.win3
2/egg/simplejson/tests
copying build/lib.win32-2.5/simplejson/tests/__init__.py -> build/bdist.win32/eg
g/simplejson/tests
copying build/lib.win32-2.5/simplejson/__init__.py -> build/bdist.win32/egg/simp
lejson
byte-compiling build/bdist.win32/egg/simplejson/decoder.py to decoder.pyc
byte-compiling build/bdist.win32/egg/simplejson/encoder.py to encoder.pyc
byte-compiling build/bdist.win32/egg/simplejson/jsonfilter.py to jsonfilter.pyc
byte-compiling build/bdist.win32/egg/simplejson/scanner.py to scanner.pyc
byte-compiling build/bdist.win32/egg/simplejson/tests/test_decode.py to test_dec
ode.pyc
byte-compiling build/bdist.win32/egg/simplejson/tests/test_default.py to test_de
fault.pyc
byte-compiling build/bdist.win32/egg/simplejson/tests/test_dump.py to test_dump.
pyc
byte-compiling build/bdist.win32/egg/simplejson/tests/test_fail.py to test_fail.
pyc
byte-compiling build/bdist.win32/egg/simplejson/tests/test_float.py to test_floa
t.pyc
byte-compiling build/bdist.win32/egg/simplejson/tests/test_indent.py to test_ind
ent.pyc
byte-compiling build/bdist.win32/egg/simplejson/tests/test_pass1.py to test_pass
1.pyc
byte-compiling build/bdist.win32/egg/simplejson/tests/test_pass2.py to test_pass
2.pyc
byte-compiling build/bdist.win32/egg/simplejson/tests/test_pass3.py to test_pass
3.pyc
byte-compiling build/bdist.win32/egg/simplejson/tests/test_recursion.py to test_
recursion.pyc
byte-compiling build/bdist.win32/egg/simplejson/tests/test_separators.py to test
_separators.pyc
byte-compiling build/bdist.win32/egg/simplejson/tests/test_unicode.py to test_un
icode.pyc
byte-compiling build/bdist.win32/egg/simplejson/tests/__init__.py to __init__.py
c
byte-compiling build/bdist.win32/egg/simplejson/__init__.py to __init__.pyc
creating build/bdist.win32/egg/EGG-INFO
removing simplejson.egg-info/native_libs.txt
copying simplejson.egg-info/PKG-INFO -> build/bdist.win32/egg/EGG-INFO
copying simplejson.egg-info/SOURCES.txt -> build/bdist.win32/egg/EGG-INFO
copying simplejson.egg-info/dependency_links.txt -> build/bdist.win32/egg/EGG-IN
FO
copying simplejson.egg-info/entry_points.txt -> build/bdist.win32/egg/EGG-INFO
error: can't copy 'simplejson.egg-info/native_libs.txt': doesn't exist or not a
regular file

D:/django/simplejson>python setup.py install
running install
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
writing entry points to simplejson.egg-info/entry_points.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
running build_ext
**********************************************************************
WARNING: The C extension could not be compiled, speedups are not enabled.

Below is the output showing how the compilation failed:

Python was built with Visual Studio 2003;
extensions must be built with a compiler than can generate compatible binaries.
Visual Studio 2003 was not found on this system. If you have Cygwin installed,
you can try compiling with MingW32, by passing "-c mingw32" to setup.py.
**********************************************************************
copying simplejson.egg-info/PKG-INFO -> build/bdist.win32/egg/EGG-INFO
copying simplejson.egg-info/SOURCES.txt -> build/bdist.win32/egg/EGG-INFO
copying simplejson.egg-info/dependency_links.txt -> build/bdist.win32/egg/EGG-IN
FO
copying simplejson.egg-info/entry_points.txt -> build/bdist.win32/egg/EGG-INFO
copying simplejson.egg-info/top_level.txt -> build/bdist.win32/egg/EGG-INFO
copying simplejson.egg-info/zip-safe -> build/bdist.win32/egg/EGG-INFO
creating dist
creating 'dist/simplejson-1.8.1-py2.5-win32.egg' and adding 'build/bdist.win32/e
gg' to it
removing 'build/bdist.win32/egg' (and everything under it)
Processing setuptools-0.6c7-py2.5.egg
Copying setuptools-0.6c7-py2.5.egg to c:/python25/lib/site-packages
Adding setuptools 0.6c7 to easy-install.pth file
Installing easy_install-script.py script to C:/Python25/Scripts
Installing easy_install.exe script to C:/Python25/Scripts
Installing easy_install-2.5-script.py script to C:/Python25/Scripts
Installing easy_install-2.5.exe script to C:/Python25/Scripts

Installed c:/python25/lib/site-packages/setuptools-0.6c7-py2.5.egg
Processing dependencies for setuptools==0.6c7
Finished processing dependencies for setuptools==0.6c7
Processing simplejson-1.8.1-py2.5-win32.egg
Copying simplejson-1.8.1-py2.5-win32.egg to c:/python25/lib/site-packages
Adding simplejson 1.8.1 to easy-install.pth file

Installed c:/python25/lib/site-packages/simplejson-1.8.1-py2.5-win32.egg
Processing dependencies for simplejson==1.8.1
Finished processing dependencies for simplejson==1.8.1


 

哦了,现在就可以使用Simplejson…
原创粉丝点击