ubuntu14 python3直譯器不能方向鍵
1,參照:https://blog.csdn.net/xlf13872135090/article/details/25986509
$ sudo apt-get install libreadline6-dev
報錯:
Traceback (most recent call last):
File "/usr/bin/pycompile", line 35, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python/debpython/version.py", line 24, in <module>
from ConfigParser import SafeConfigParser
ModuleNotFoundError: No module named 'ConfigParser'
dpkg: error processing package python-py (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python-pytest:
python-pytest depends on python-py (>= 1.4.19); however:
Package python-py is not configured yet.
原因可能是系統同時有python2和python3, 而apt-get預設python2
2,設定為Python3為預設(不清楚是否起作用)
參照: