0

I am new in django and python.I am using windows 7 and Eclipse IDE.I have installed python 2.7,django and pip.I have created a system variable called PYTHONPATH with values C:\Python27;C:\Python27\Scripts.I am unable to set path for django and pip.When i type django-admin.py and pip in powershell,it shows commandnotfoundexception.I have attached screen shots of my django files and pip files.enter image description hereenter image description here Please help me

Techy
  • 2,288
  • 6
  • 35
  • 77

2 Answers2

2

You need to set the Powershell specific path variable. It does not know to look for an environment variable called pythonpath. That is helpful only for python aware applications (such as installers for Python modules).

You need to add the Python directories to the $env:Path environment variable in Powershell. See Setting Windows PowerShell path variable

$env:Path += ";C:\Python27;C:\Python27\Scripts"

Community
  • 1
  • 1
Steve
  • 6,914
  • 2
  • 27
  • 49
0

Also, if you're just getting started with Django and Eclipse, make sure you configure your PyDev interpreter settings to include the site-packages directory. This will ensure Eclipse can find your Django packages.

You can find more details about setting up your PYTHONPATH inside Eclipse here:

PyDev Interpreter Configuration

bunn
  • 11
  • 3