python2で作られたプログラムを動かしたいと考えています。
しかしnumpyがimportできない(?)のようなエラーが発生します。
ネットで調べた結果、numpyをアンインストール後もう一度インストールすることが有効であるとの情報があったので、
試しましたが解決できませんでした。
自分としては、numpyがpython2のサポートを終了していることが原因なのではないかと考えています。
現状で、python2で作られたプログラムを動かす手段は何かないでしょうか。
ご教授ください。
pythonのバージョン2.7
numpyのバージョン1.18.1
参考までに発生しているエラーを載せます。
ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy c-extensions failed. - Try uninstalling and reinstalling numpy. - If you have already done that, then: 1. Check that you expected to use Python2.7 from "/usr/bin/python2", and that you have no directories in your PATH or PYTHONPATH that can interfere with the Python and numpy version "1.18.1" you're trying to use. 2. If (1) looks fine, you can open a new issue at https://github.com/numpy/numpy/issues. Please include details on: - how you installed Python - how you installed numpy - your operating system - whether or not you have multiple versions of Python installed - if you built from source, your compiler versions and ideally a build log - If you're working with a numpy git repository, try `git clean -xdf` (removes all files not under version control) and rebuild numpy. Note: this error has many possible causes, so please don't comment on an existing issue about this - open a new one instead. Original error was: No module named _multiarray_umath
回答1件
あなたの回答
tips
プレビュー