I want to install 2.7.10 on OpenSUSE 13.2, but I’m stuck on an error which I did not see in the 2.7.8 install. Any help would be greatly appreciated.
This is how I installed python:
./configure --prefix=/usr
make
su root
make install
During make, I got this:
Python-2.7.10/Modules/_curses_panel.c:17:19: fatal error: panel.h: No such file or directory
#include <panel.h>
^
compilation terminated.
Python build finished, but the necessary bits to build these modules were not found:
bsddb185 dl imageop
sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
Failed to build these modules:
_curses_panel
running build_scripts
But this thread tells me that I do not need it (go to 2nd last comment). http://codeverge.com/opensuse.org.help.applications/need-python-2.6-in-suse-11.4/1907211
So I carried on.
Running python afterwards gives me:
Python 2.7.10 (default, Oct 18 2015, 13:12:33)
[GCC 4.8.3 20140627 [gcc-4_8-branch revision 212064]] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Traceback (most recent call last):
File "/etc/pythonstart", line 7, in <module>
import readline
ImportError: No module named readline
>>>
Trying to run an application that used to work now gives
File "/usr/lib/python2.7/subprocess.py", line 427, in <module>
import select
ImportError: No module named select
I checked and /usr/lib/python2.7 does not have select.py.
Do you know how this is possible? I’ve installed readline-devel already.
I realize belatedly that I should’ve run “make altinstall” just to be safe. But anyhow that’s my problem.
Also, how do I revert back to 2.7.8 as the primary python version?
Thanks.