2
emacsでPythonコードを実行しようとしています。emacsでPython実行時にエラーが発生しました(ImportError:siteという名前のモジュールがありません)
私はc-c c-cを試すと、以下のエラーが発生します。
ImportError: No module named siteCould not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site
次のように私はの.emacsファイルでPYTHONPATHを設定します。
(setenv "PYTHONPATH" "/opt/python2.7/bin")
それでもエラーポップ。
何が起こっているのか?
複数のPythonがインストールされていますか? – Keith
これを試した後、 'print(sys.path)'の出力は何ですか? – Keith
@Keith新しいものをインストールして古いものを削除したので、1つしか存在しません。 –