python3運行后左右上下鍵不能正常使用?
解決方法:(1)安裝readline庫: yum install readline-devel.*
(2)重新安裝編譯Python,并檢測:
./configure --prefix=/opt/software/python3.7 --enable-optimizations # python3.6 為指定的安裝目錄, --prefix 參數可以忽略,選擇默認安裝路徑即可;
make && make install # 編譯安裝;
ln -s /opt/software/Python3.6/bin/python3 /usr/bin/python # 創建軟連接,選擇默認安裝路徑可以忽略;