Python development environment settings (Windows)

Source: Internet
Author: User

Python development environment settings (Windows)

1) python2.7.3 Installation

Download Python-2.7.6.amd64.msi software on www.python.org. Set the path path when the installation is complete. New user variable, advanced system settings, advanced systems, Control Panel, variable name path, variable value, OK, OK.



To see if the settings were successful: Cmd->python, for example, with output, stating that the environment variable was set successfully.

Watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvenq4nti=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70 /gravity/center ">

2) Setuptools installation (python2.7.3)

download Setuptools-3.6.zip file from https://pypi.python.org/packages/source/s/setuptools/setuptools-3.6.zip#md5= On the 985a92e582a288ebedb0aa9f5e9f6d0d.

Then copy the file ez_setup.py from Setuptools-3.6.zip to the Python folder and run the command Python ez_setup.py

Watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvenq4nti=/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70 /gravity/center ">


Go to the Python Scripts folder. Ability to view Easy_install-2.7.exe

Once again, add the path to the Setuotools in the user variable's path. The path to Python is separated by semicolons, for example.



Run Easy_install have for example with output. Indicates a successful installation.


3) Installing Django

C:\users\192.168.9.85>easy_install Django

Searching for Django

readinghttps://pypi.python.org/simple/django/

Best Match:django 1.6.5

Downloading https://pypi.python.org/packages/source/D/Django/Django-1.6.5.tar.gz

#md5 =e4c5b2d35ecb3807317713afa70a0c77

Processing django-1.6.5.tar.gz

writingc:\users\192168~1.85\appdata\local\temp\easy_install-euecnr\django-1.6.5

\setup.cfg

Running Django-1.6.5\setup.py-qbdist_egg--dist-dir C:\USERS\192168~1.85\APPDA

ta\local\temp\easy_install-euecnr\django-1.6.5\egg-dist-tmp-sqao5l

Warning:no previously-included filesmatching ' __pycache__ ' found under Directo

Ry ' * '

Warning:no previously-included filesmatching ' *.py[co] ' found under directory

‘*‘

Zip_safe flag not set; Analyzingarchive contents ...

Django.conf.project_template.project_name.settings:module References __file__

Django.contrib.admin.bin.compress:module References __file__

Django.contrib.admindocs.views:modulereferences __file__

Django.contrib.auth.tests.test_context_processors:module References __file__

Django.contrib.auth.tests.test_forms:module References __file__

Django.contrib.auth.tests.test_views:module References __file__

Django.contrib.flatpages.tests.test_csrf:module References __file__

Django.contrib.flatpages.tests.test_middleware:module References __file__

Django.contrib.flatpages.tests.test_templatetags:module References __file__

Django.contrib.flatpages.tests.test_views:module References __file__

Django.contrib.formtools.tests.tests:module References __file__

Django.contrib.formtools.tests.wizard.namedwizardtests.tests:module references

__file__

Django.contrib.formtools.tests.wizard.wizardtests.tests:module References __fil

e__

Django.contrib.gis.geometry.test_data:module References __file__

Django.contrib.gis.tests.geo3d.tests:module References __file__

Django.contrib.gis.tests.geogapp.tests:module References __file__

Django.contrib.gis.tests.layermap.tests:module References __file__

Django.contrib.sitemaps.tests.test_http:module References __file__

Django.contrib.staticfiles.storage:module References __file__

Django.core.management.sql:modulereferences __file__

Django.core.management.templates:module References __path__

Django.core.management.__init__:module References __path__

Django.core.management.commands.makemessages:module References __file__

Django.db.utils:module references__file__

Django.db.models.loading:modulereferences __file__

Django.db.models.loading:module references__path__

Django.template.loaders.app_directories:module References __file__

Django.test._doctest:modulereferences __file__

Django.test._doctest:module May beusing Inspect.getsourcefile

Django.utils.autoreload:modulereferences __file__

Django.utils.module_loading:modulereferences __path__

Django.utils.six:module references__file__

Django.utils.six:module references__path__

Django.utils.version:modulereferences __file__

Django.utils.translation.trans_real:module References __file__

Django.utils.unittest.collector:module References __file__

Django.utils.unittest.loader:modulereferences __file__

Django.views.i18n:module references__file__

Adding Django 1.6.5 toeasy-install.pth file

Installing django-admin.py Script toc:\python27\scripts

Installedc:\python27\lib\site-packages\django-1.6.5-py2.7.egg

Processing dependencies for Django

Finished processing dependencies Fordjango

c:\users\192.168.9.85>

Python development environment settings (Windows)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.