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)
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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,
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
Thank you so much! It worked perfectly. Didn't realize I should do it in the command promter and not IDLE ;)
Read this in particular: http://peak.telecommunity.com/DevCenter/EasyInstall#windows-notes