1
1

More than 3 years have passed since last update.

2019-10-08 Python > PYTHONPATH > import対象のディレクトリ指定 (モジュール検索パス)

Last updated at Posted at 2019-10-08
動作環境
CentOS Linux release 7.7.1908 (Core)

PYTHONPATH?

OpenMPIのモジュールをmoduleコマンドでロードしようとしていたところ、/etc/modulefiles/が必要になるようだ。そのファイルには以下のような記述がある。

prepend-path            PYTHONPATH      /usr/lib64/python2.6/site-packages/openmpi-1.10

自分の環境には上記のようなディレクトリはない。

モジュール検索パスのようだ。

pipインストールした場合に/usr/lib64/python2.6/site-packagesにディレクトリが追加されるのだろう。

現在構築中のシステムではpipインストールはしないので、ディレクトリがない。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1