pythonでrebinが使えない

状況1

python2.7とpython3.6が共存しているパソコン。最近3.6をanacondaから入れた。
pip install rebin すると、もう入ってるよ!って言ってくるけど、python2.7でrebinを使おうとすると、そんなの入ってないよ!って言われる。

解決方法1

pip2 install rebin でpython2.7のパスが通ったところにrebinがインストールされる。


状況2

import rebinでrebinが使えない。

解決方法2

from rebin import rebin

#idlの大学以外で計算できない欠点に加えて、astronの関数のバグに悩まされ、ついにpython使いになることを決意しました。

コメント

このブログの人気の投稿

TypeError: ufunc 'bitwise_xor' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

overleafで画像が表示されない!

エラー: ""C:\U" で始まる文字列の中で 8 進文字なしに '\U' が使われています