Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はPython2.7をOpenSUSEにインストールしています。私はptyいくつかのptyをスポーンするためにモジュールを使用しています:
pty
import pty
しかし、Pythonはそれを見つけることができないようです。
ImportError: No module named pty
help('modules')インタプリタで実行すると、ptyがインストールされていることがわかります。
help('modules')
回答としての再投稿:
sys.path問題は、IDEが正しく設定されていない可能性があります。インポート元を見つけptyて、IDEの設定のPYTHONPATHにあることを確認します。
sys.path