
usr/lib64/python2.6/lib-dynload/_curses_panel.soįind/2>/dev/null | grep 'python2.7/lib-dynload'|head -2 usr/lib64/python2.6/lib-dynload/_curses.so Solution steps: find/-iname "_curses*.so" 2>/dev/null See the name, you may understand, originally_ Curses is this_ No doubt Actually, curves has been loaded, but there is an error in the middle of reloadingĪfter comparing python2.6, we finally found that there was no corresponding curses Library in pythong2.7/lib-dynload This time, you will be prompted no module named_ Curses, and prompts you to curses/_ init_. When curses is not installed normally, you will be prompted that the module curses cannot be found.
PYTHON 3 INSTALL CURSES INSTALL
What is the reason?Why is curses installedĪfter careful analysis, you should find that the first time you did not install the cures module and after installation, the errors prompted are not exactly the same. Use PIP (python2.7, if configure – with – insure PIP = yes, it will automatically help you install PIP) to install curses-2048 (sudo PIP install curses-2048) and continue to prompt import cursesįile “/usr/local/lib/python2.7/curses/_init_.py”, line 15, in Since my project is CentOS, the above solution is not applicable, so it is necessary to study the solution of Linux/CentOS 2.

Install the corresponding package PIP install name.whl Curses is the standard part of most UNIX like systems (including linux ), and it has been ported to windows and other systems 1. The curses library provides a terminal independent way to control the character screen.

As a result, after sudopipinstallbpython, I ran the prompt importerror: no module named_ curses Recently, I wanted to try bpython, which has features such as syntax prompt and color highlight.

Python from the command line is actually very difficult to use.
