CentOS サーバーに sudo 権限のないアカウントを持っています。ということで、ソースコードからIPythonをインストールしてみましたpython setup.py prefix=<my home directory>
。
ただし、エラーが発生しました:
Traceback (most recent call last):
File "/usr/bin/ipython", line 19, in <module>
from IPython.frontend.terminal.ipapp import launch_new_instance
ImportError: No module named IPython.frontend.terminal.ipapp
私と同じ質問を見つけました: IPython import failure and python sys.path in general。
質問者の指示に従って、IPython のディレクトリを IPython 実行ファイルに追加しました。
#!/usr/bin/python
"""Terminal-based IPython entry point.
"""
import sys
sys.path.append("./Ipython directory")
from IPython.frontend.terminal.ipapp import launch_new_instance
launch_new_instance()
ただし、同じエラーも発生しました。IPythonを正しく起動する方法を知りたいですか? ありがとう。