I need to install MySQLdb.
I write:
$ tar xfz MySQL-python-1.2.1.tar.gz
$ cd MySQL-python-1.2.1
$ python setup.py build #it is ok
$ su root setup.py install #return list of errors
error list:
setup.py: line 3: import: command not found
setup.py: line 4: import: command not found-
setup.py: line 5: from: command not found-
setup.py: line 7: syntax error nearunexpected token '('-
setup.py: line 7: 'if not hasattr(sys, "hexversion") or sys.hexversion < 0x02030000:'
What's wrong?
SilentGhost
322k67 gold badges312 silver badges294 bronze badges
asked Jun 24, 2010 at 8:17
Kalinin
2,5398 gold badges37 silver badges51 bronze badges
1 Answer 1
You forgot an important word in your example: "python"
$ su root python setup.py install
answered Jun 24, 2010 at 8:22
msw
43.7k9 gold badges92 silver badges118 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
default
rootis needed there, just trysu python setup.py installsu python setup.py install- returned errorsu: user python does not exist.sudo