Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've got an Ubuntu 12.04 x64 Server edition VM that I'm running python2.7 on and trying to install the MySQLdb package via the command (I've already got easy_install installed and working):

$ sudo easy_install MySQL-python

but I get the following traceback error when easy_install tries to compile:

Traceback (most recent call last):
   File "/usr/local/bin/easy_install", line 9, in <module>
      load_entry_point('distribute', 'console_scripts', 'easy_install')()
   File "/usr/local/lib/python2.7/dist-packages/setuptools-1.1-py2.7.egg/pkg_resources.py", line 357, in load_entry_point
      return get_distribution(dist).load_entry_point(group, name)
   File "/usr/local/lib/python2.7/dist-packages/setuptools-1.1-py2.7.egg/pkg_resources.py", line 2393, in load_entry_point
      raise ImportError("Entry point %r not found" % ((group,name),))
ImportError: Entry point ('console_scripts', 'easy_install') not found

My /usr/local/lib/python2.7/dist-packages shows the following packages installed:

  • distribute-0.7.3-py2.7.egg
  • easy-install.pth
  • pyinotify-0.9.4-py2.7.egg
  • setuptools-1.1-py2.7.egg
  • setuptools.pth

I'm not really sure where to go from here, or why I'm even getting this error...any ideas?

share|improve this question
1  
Any reason you cannot use the precompiled packages? –  dawud Sep 3 '13 at 12:19
    
@dawud to install what? mysql-python? I don't see that in the list at the site you linked... –  sadmicrowave Sep 3 '13 at 12:45
    
The actual name of the package might not be exactly the same. Use apt-cache show $package to find out which one is the packaged version of MySQL-python (python-mysqldb?) –  dawud Sep 3 '13 at 12:49
    
@dawud, this would be my first time installing from the prepackaged list; do I download the file from a browser and scp it to my box or can I use apt-get? if so, what is the command to install from the prepackaged repo? –  sadmicrowave Sep 3 '13 at 12:56
    
The usual workflow is apt-get update and apt-get install $package. You can also also use aptitude instead of apt-get. Dependencies (if any) will be handled automatically. –  dawud Sep 3 '13 at 12:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.