Python 2.7.9 PyBrain 问题 SciPy
Python 2.7.9 PyBrain issue with SciPy
我刚刚尝试使用 scipy‑0.15.1‑cp27‑none‑win_amd64.whl
安装 SciPy
我安装了 Python 2.7.9 x64
我安装了 wheel
我安装了 numpy
我在 Windows7
下工作
日志说scipy在运行后安装成功:
pip install scipy-0.15.1-cp27-none-win_amd64.whl
日志显示pybrain也安装成功:
pip install pybrain
当我创建一个 python 文件时,我可以导入 scipy,但是当我尝试导入 pybrain 时,我得到:
Traceback (most recent call last): File
"C:\Users\me\Desktop\PROJECT\nn.py", line 1, in
import pybrain File "C:\Python27\lib\site-packages\pybrain__init__.py", line 1, in
from structure.init import * File "C:\Python27\lib\site-packages\pybrain\structure__init__.py", line 2,
in
from modules.init import * File "C:\Python27\lib\site-packages\pybrain\structure\modules__init__.py",
line 2, in
from gate import GateLayer, DoubleGateLayer, MultiplicationLayer, SwitchLayer File
"C:\Python27\lib\site-packages\pybrain\structure\modules\gate.py",
line 11, in
from pybrain.tools.functions import sigmoid, sigmoidPrime File "C:\Python27\lib\site-packages\pybrain\tools\functions.py", line 4, in
from scipy.linalg import inv, det, svd File "C:\Python27\lib\site-packages\scipy\linalg__init__.py", line 161, in
from .misc import * File "C:\Python27\lib\site-packages\scipy\linalg\misc.py", line 5, in
from . import blas File "C:\Python27\lib\site-packages\scipy\linalg\blas.py", line 155, in
from scipy.linalg import _fblas ImportError: DLL load failed: The specified module could not be found.
正在尝试
import from scipy.linalg import _fblas
只给出同样的错误:
Traceback (most recent call last): File
"C:\Users\me\Desktop\PROJECT\nn.py", line 1, in
from scipy.linalg import _fblas File "C:\Python27\lib\site-packages\scipy\linalg__init__.py", line 161, in
from .misc import * File "C:\Python27\lib\site-packages\scipy\linalg\misc.py", line 5, in
from . import blas File "C:\Python27\lib\site-packages\scipy\linalg\blas.py", line 155, in
from scipy.linalg import _fblas ImportError: DLL load failed: The specified module could not be found.
我得出结论,我缺少 LAPACK,所以我使用 this link 构建它构建完成并通过所有测试,但问题仍然存在......也许我没有将 LIB 和 BIN 复制到正确的目的地...
卸载并重新安装。
如果您第一次安装时没有使用 sudo,那么如果您正在为全局 Python 模块安装,则可能会出现问题。
您也可以尝试使用此处的安装:
我刚刚尝试使用 scipy‑0.15.1‑cp27‑none‑win_amd64.whl
安装 SciPy
我安装了 Python 2.7.9 x64
我安装了 wheel
我安装了 numpy
我在 Windows7
日志说scipy在运行后安装成功:
pip install scipy-0.15.1-cp27-none-win_amd64.whl
日志显示pybrain也安装成功:
pip install pybrain
当我创建一个 python 文件时,我可以导入 scipy,但是当我尝试导入 pybrain 时,我得到:
Traceback (most recent call last): File "C:\Users\me\Desktop\PROJECT\nn.py", line 1, in import pybrain File "C:\Python27\lib\site-packages\pybrain__init__.py", line 1, in from structure.init import * File "C:\Python27\lib\site-packages\pybrain\structure__init__.py", line 2, in from modules.init import * File "C:\Python27\lib\site-packages\pybrain\structure\modules__init__.py", line 2, in from gate import GateLayer, DoubleGateLayer, MultiplicationLayer, SwitchLayer File "C:\Python27\lib\site-packages\pybrain\structure\modules\gate.py", line 11, in from pybrain.tools.functions import sigmoid, sigmoidPrime File "C:\Python27\lib\site-packages\pybrain\tools\functions.py", line 4, in from scipy.linalg import inv, det, svd File "C:\Python27\lib\site-packages\scipy\linalg__init__.py", line 161, in from .misc import * File "C:\Python27\lib\site-packages\scipy\linalg\misc.py", line 5, in from . import blas File "C:\Python27\lib\site-packages\scipy\linalg\blas.py", line 155, in from scipy.linalg import _fblas ImportError: DLL load failed: The specified module could not be found.
正在尝试
import from scipy.linalg import _fblas
只给出同样的错误:
Traceback (most recent call last): File "C:\Users\me\Desktop\PROJECT\nn.py", line 1, in from scipy.linalg import _fblas File "C:\Python27\lib\site-packages\scipy\linalg__init__.py", line 161, in from .misc import * File "C:\Python27\lib\site-packages\scipy\linalg\misc.py", line 5, in from . import blas File "C:\Python27\lib\site-packages\scipy\linalg\blas.py", line 155, in from scipy.linalg import _fblas ImportError: DLL load failed: The specified module could not be found.
我得出结论,我缺少 LAPACK,所以我使用 this link 构建它构建完成并通过所有测试,但问题仍然存在......也许我没有将 LIB 和 BIN 复制到正确的目的地...
卸载并重新安装。
如果您第一次安装时没有使用 sudo,那么如果您正在为全局 Python 模块安装,则可能会出现问题。
您也可以尝试使用此处的安装: