python 2.5源代码编绎

VS C++项目中,选择工程项名称,右菜单中选择--->仅适用于项目---->仅生成(项目)

 

1.make_buildinfo,make_versioninfo

make_buildinfo.exe

make_versioninfo_d.exe

 

2.pythoncore   

python25_d.lib

python25_d.dll

 

3.python,pythonw

python_d.exe

pythonw_d.exe

 

下载setuptools-21.1.0.zip  (WINDOW 下的扩展名 zip)

E:\setuptools-21.1.0\setuptools-21.1.0>python setup.py install

Copying setuptools-21.1.0-py3.4.egg to c:\python34\lib\site-packages
Adding setuptools 21.1.0 to easy-install.pth file
Installing easy_install-script.py script to C:\Python34\Scripts
Installing easy_install.exe script to C:\Python34\Scripts
Installing easy_install.exe.manifest script to C:\Python34\Scripts
Installing easy_install-3.4-script.py script to C:\Python34\Scripts
Installing easy_install-3.4.exe script to C:\Python34\Scripts
Installing easy_install-3.4.exe.manifest script to C:\Python34\Scripts

 

---------------------------------------------------------------------------------------------------

安装Django:

E:\Django-1.9.6\Django-1.9.6>python setup.py install                                                                  

creating 'dist\Django-1.9.6-py3.4.egg' and adding 'build\bdist.win32\egg' to it
removing 'build\bdist.win32\egg' (and everything under it)
Processing Django-1.9.6-py3.4.egg
creating c:\python34\lib\site-packages\Django-1.9.6-py3.4.egg

Extracting Django-1.9.6-py3.4.egg to c:\python34\lib\site-packages

Adding Django 1.9.6 to easy-install.pth file

Installing django-admin.py script to C:\Python34\Scripts
Deleting C:\Python34\Scripts\django-admin.py
Installing django-admin-script.py script to C:\Python34\Scripts
Installing django-admin.exe script to C:\Python34\Scripts
Installing django-admin.exe.manifest script to C:\Python34\Scripts

Installed c:\python34\lib\site-packages\django-1.9.6-py3.4.egg
Processing dependencies for Django==1.9.6
Finished processing dependencies for Django==1.9.6

---------------------------------------------------------------------------------------------------------------------------------

 

系统变量加入以下路径:
C:\Python34;C:\Python34\Scripts;C:\Python34\Lib\site-packages\Django-1.9.6-py3.4.egg\django\bin

 

测试:

C:\Users\Administrator>cd C:\Python34\Lib\site-packages\Django-1.9.6-py3.4.egg\django\bin

C:\Python34\Lib\site-packages\Django-1.9.6-py3.4.egg\django\bin>python Django-admin.py  startproject  testemo

C:\Python34\Lib\site-packages\Django-1.9.6-py3.4.egg\django\bin>cd testemo

C:\Python34\Lib\site-packages\Django-1.9.6-py3.4.egg\django\bin\testemo> python manage.py runserver
Performing system checks...

System check identified no issues (0 silenced).

You have unapplied migrations; your app may not work properly until they are applied.
Run 'python manage.py migrate' to apply them.
May 21, 2016 - 13:17:23
Django version 1.9.6, using settings 'testemo.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Not Found: /
[21/May/2016 13:18:38] "GET / HTTP/1.1" 200 1767
Not Found: /favicon.ico
[21/May/2016 13:18:39] "GET /favicon.ico HTTP/1.1" 404 1937
ie:
http://127.0.0.1:8000/


It worked! Congratulations on your first Django-powered page. Of course, you haven't actually done any work yet. Next, start your first app by running python manage.py startapp [app_label]. You're seeing this message because you have DEBUG = True in your Django settings file and you haven't configured any URLs. Get to work!

 

posted @ 2016-05-21 12:00  zengkefu  阅读(420)  评论(0编辑  收藏  举报