| View previous topic :: View next topic |
| Author |
Message |
leke LXF regular

Joined: Mon Oct 22, 2007 6:45 pm Posts: 479 Location: Oulu, Finland
|
Posted: Mon Feb 20, 2012 7:10 pm Post subject: [Python] Problems with module install after upgrade |
|
|
Hi, I recently upgraded my python 2.6 to 2.7, but am having some problems installing modules. I've downloaded the feedparser module and the readme instructed me to have either distutils or setuptools installed (which I have) and then to run "python setup.py install" from the module's root directory.
Here's the error I get...
| Code: | asdf@asdf-laptop ~/Desktop/feedparser-5.1 $ python setup.py install
Traceback (most recent call last):
File "setup.py", line 1, in <module>
from setuptools import setup
ImportError: No module named setuptools
|
Any idea how I can get python 2.7 to recognise setuptools or vice versa?
Thanks in advance. _________________ I codes here: http://notsure.tk |
|
| Back to top |
|
 |
nelz Moderator

Joined: Mon Apr 04, 2005 12:52 pm Posts: 7997 Location: Warrington, UK
|
Posted: Mon Feb 20, 2012 11:21 pm Post subject: |
|
|
It is possible that setuptools has been installed in the python 2.6 modules directory. Try reinstalling setuptools,and anything else that installed python modules. _________________ Unix is user-friendly. It's just very selective about who it's friends are. |
|
| Back to top |
|
 |
leke LXF regular

Joined: Mon Oct 22, 2007 6:45 pm Posts: 479 Location: Oulu, Finland
|
Posted: Tue Feb 21, 2012 7:07 am Post subject: |
|
|
Sorry, forgot to mention, I reinstalled setuptools and installed distutils for the first time before I tried to install the module.
I'll google how to check if setuptools is pointing to the correct python version. _________________ I codes here: http://notsure.tk |
|
| Back to top |
|
 |
leke LXF regular

Joined: Mon Oct 22, 2007 6:45 pm Posts: 479 Location: Oulu, Finland
|
Posted: Tue Feb 21, 2012 7:26 am Post subject: |
|
|
Ok, fixed it. I had to run ez_install.py (which pointed setuptools to the correct python version) and afterwards, was able to install the feedparser module without problems.
Thanks for the guidance  _________________ I codes here: http://notsure.tk |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|