Menu

Cannot install with easy_install,

Help
Davve
2007-03-11
2012-09-19
  • Davve

    Davve - 2007-03-11

    Hi,
    I downloaded the win32 package and put it into Python25/Lib/Site-package/.

    My problem is I cannot install it. I've downloaded easy_install but when I use it I only get "Invalid syntax", I've tried easy_install mysql-python, easy_install MySQL_python[...].egg and jet again invalid syntax.
    If I only write easy_install (in IDLE with Python 2.5) I get
    <module 'easy_install' from 'C:\Program Files\Python25\lib\site-packages\easy_install.pyc'>

    My error:
    >>> easy_install MySQL_python-1.2.2-py2.5-win32.egg
    SyntaxError: invalid syntax
    >>>

    I got Python 2.5 installed, and have runed the windows install version of setupstools and easy_install.
    My computer is a Windows 2000 Server (if that matters)

    Could someone help me? I've tried http://peak.telecommunity.com/DevCenter/EasyInstall#using-easy-install and all subsites but none is working for me. I have also tried the "help" on python.org but no success.

    Thanks in advance,

     
    • Andy Dustman

      Andy Dustman - 2007-03-11

      easy_install is a command-line tool in the sense of operating system command line, not Python command line. On Windows you need to run easy_install.exe MySQL-python and this should download and install the egg. Since you already have it downloaded, you can also do easy_install.exe \path\to\MySQL_python-1.2.2-py2.5-win32.egg

      easy_install.exe is in (probably) \Python2.5\scripts

       
    • Davve

      Davve - 2007-03-11

      Thank you so much! It worked perfectly. Didn't realize I should do it in the command promter and not IDLE ;)

       
    • Andy Dustman

      Andy Dustman - 2007-03-11
       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.