python - Not able to install Django on windows 7 -


i trying install django-1.5.5 on windows 7. have installed when try punch in "django-admin.py startproject mysite" following error:

c:\users\dipanshu>django-admin.py startproject mysite traceback (most recent call last):   file "c:\django-1.5.5\django\bin\django-admin.py", line 2, in <module>     django.core import management   file "c:\python27\lib\site-packages\django\core\management\__init__.py", 9, in <module>     django.core.management.base import basecommand, commanderror, han fault_options   file "c:\python27\lib\site-packages\django\core\management\base.py", lin in <module>     django.utils.encoding import force_str   file "c:\python27\lib\site-packages\django\utils\encoding.py", line 10, dule>     urllib import quote   file "c:\python27\lib\urllib.py", line 26, in <module>     import socket   file "c:\python27\lib\socket.py", line 47, in <module>     import _socket importerror: dll load failed: specified procedure not found. 

previously, tried django-1.4.2 problem same. having python27.please assist.

yups! got it! here's did:

  1. removed python , installed again.
  2. adjust path environment variable include paths python executable & additional scripts.
  3. installed setuptools
  4. installed pip using easy_install pip.
  5. installed django using pip install django.

note: if python installed in c:\python27\, following paths need added path: c:\python27\;c:\python27\scripts;

reference: https://docs.djangoproject.com/en/dev/howto/windows/

thanks lot valuable inputs , bearing me! :-)


Comments

Popular posts from this blog

c++ - How to add Crypto++ library to Qt project -

jQuery Mobile app not scrolling in Firefox -

How to use vim as editor in Matlab GUI -