
CentOS を実行していますが、すでに Python2.6 がインストールされています。Python2.7 をインストールし、2.7
でバージョンを確認できますpython -V
。demjson
モジュール ( pip install demjson
) をインストールしてからプログラムを実行しようとしました。モジュールが見つからないというエラーが発生します。モジュールを再インストールしようとすると、次のようなエラーが発生しました。
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6 Requirement already satisfied (use --upgrade to upgrade): demjson in /usr/lib/python2.6/site-packages
この問題を解決するにはどうすればいいでしょうか。モジュールはまだ2.6
答え1
ここで説明されている手順を実行しました。Python の 2 つのバージョン (python2.6.6 と python2.7.8) がありますが、特定のバージョンにパッケージをインストールする方法をまだ理解中です。これが役立つかもしれません。
https://dmngaya.com/2015/10/25/python-2-7-on-centos-6-7/ をインストールしています
はい!記載されている手順に従うとうまくいきました。パスをリンクするだけです!*乾杯