我想在服務器上寫一個快速腳本。默認的python是2.6 - 我在邊上安裝了2.7,因爲我需要它的mysql-connector
我已經安裝了程序,並且我提到了here,所以系統默認爲它。mysql連接器沒有看到python2.7
當我嘗試從命令行運行rpm -ivh mysql-connector-python-2.1.6-1.el7.x86_64.rpm
實際安裝的連接器,我得到:
warning: mysql-connector-python-2.1.6-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY error: Failed dependencies: python(abi) = 2.7 is needed by mysql-connector-python-2.1.6-1.el7.x86_64 [[email protected] ~]# key ID 5072e1f5: NOKEY
如果鍵入python -V
返回,我期待2.7。
我哪裏錯了?