Installing PyExcelerator to write Excel files from Python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tkpmep@hotmail.com

    Installing PyExcelerator to write Excel files from Python

    I downloaded PyExcelerator.z ip as I need to write some data into Excel
    files, and tried unsuccessfully to install it. I unzipped the files
    into C:/Python24/Lib/site-packages/PyExcelerator, and in a python
    command line window typed
    [color=blue][color=green][color=darkred]
    >>>os.chdir(" C:/Python24/Lib/site-packages/PyExcelerator")[/color][/color][/color]

    followed by
    [color=blue][color=green][color=darkred]
    >>>python ./setup.py install[/color][/color][/color]

    exactly as stated in README.txt. However all I get is a SyntaxError.

    I then tried various combinations - with and without enclosing quotes,
    with and without ./, and in all cases I get a SyntaxError. Has anyone
    installed this program successfully? If so, what's the magic ingredient
    for a successful install?

    Thanks in advance

    Thomas Philips

  • Fredrik Lundh

    #2
    Re: Installing PyExcelerator to write Excel files from Python

    tkpmep@hotmail. com wrote:
    [color=blue]
    > I downloaded PyExcelerator.z ip as I need to write some data into Excel
    > files, and tried unsuccessfully to install it. I unzipped the files
    > into C:/Python24/Lib/site-packages/PyExcelerator, and in a python
    > command line window typed
    >[color=green][color=darkred]
    > >>>os.chdir(" C:/Python24/Lib/site-packages/PyExcelerator")[/color][/color]
    >
    > followed by
    >[color=green][color=darkred]
    > >>>python ./setup.py install[/color][/color]
    >
    > exactly as stated in README.txt. However all I get is a SyntaxError.
    >
    > I then tried various combinations - with and without enclosing quotes,
    > with and without ./, and in all cases I get a SyntaxError. Has anyone
    > installed this program successfully? If so, what's the magic ingredient
    > for a successful install?[/color]

    use a windows *command interpreter* window, instead of typing windows
    commands into a Python interpreter.

    (if you cannot find it in your start menu, select "run..." and run the "cmd"
    command).

    </F>



    Comment

    • tkpmep@hotmail.com

      #3
      Re: Installing PyExcelerator to write Excel files from Python

      Thanks!!! I had a good laugh at myself after i got it working.

      Comment

      • Kent Johnson

        #4
        Re: Installing PyExcelerator to write Excel files from Python

        tkpmep@hotmail. com wrote:[color=blue]
        > I downloaded PyExcelerator.z ip as I need to write some data into Excel
        > files, and tried unsuccessfully to install it. I unzipped the files
        > into C:/Python24/Lib/site-packages/PyExcelerator[/color]

        You should unzip to somewhere else, the install step will put the
        correct files into site-packages.

        Kent

        Comment

        Working...