Problems with distutils

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • josh001
    New Member
    • Jul 2008
    • 19

    Problems with distutils

    Hello I have a slight problem with distutils.
    Apparently I'm supposed to write my setup script which I have,
    and then enter...

    python setup.py build

    in the command prompt but when I do that it just says.

    'python' is not recognized as an internal or external command,
    operable program or batch file.

    The question is what should I write in the command prompt window?
  • kaarthikeyapreyan
    New Member
    • Apr 2007
    • 106

    #2
    PYTHONPATH settings

    The problem is not with your distutils, Windows is not able to find the path of your python executable
    please set your PYTHONPATH environment variable to point to your python installation folder

    Comment

    • jlm699
      Contributor
      • Jul 2007
      • 314

      #3
      Alternately you could do
      <full path to python.exe>\pyt hon.exe setup.py build

      Comment

      • josh001
        New Member
        • Jul 2008
        • 19

        #4
        I put the python directory in the Pythonpath variable.
        But it still does not work.
        I think the problem is the DOS/Command prompt does not recognize python as a command.
        is there a command that I should use before writing...
        python setup.py build
        ???

        Comment

        • jlm699
          Contributor
          • Jul 2007
          • 314

          #5
          As per my last post: on my windows box I would enter the following

          C:\Python24\pyt hon.exe setup.py build

          Since I was fed up with that I added C:\Python24\ to my %PATH% variable permanently. So now I would only need
          python setup.py build

          Try typing this into cmd: echo %PATH%
          That will show you everything that's in your path variable

          Comment

          Working...