我有默认和anaconda python,theano安装在conda中,而且它也是kera的anaconda的一部分。我试图将另一个文件夹中的python文件作为python ----
执行,除from theano.tensor.fft import ifft
之外一切正常,其中no module named theano.tensor.fft
我已添加PYTHONPATH
我已在网站中单独添加了theano -package但我无法弄清楚为什么它无法导入模块,请注意我可以import theano.tensor
我正在尝试运行MarcBS / keras caffe2keras.py
这是我在尝试安装theano时得到的
Traceback (most recent call last):
File "/usr/local/bin/pip", line 7, in <module>
from pip import main
File "/usr/local/lib/python2.7/dist-packages/pip/__init__.py", line 11, in <module>
from pip.vcs import git, mercurial, subversion, bazaar # noqa
File "/usr/local/lib/python2.7/dist-packages/pip/vcs/mercurial.py", line 9, in <module>
from pip.download import path_to_url
File "/usr/local/lib/python2.7/dist-packages/pip/download.py", line 22, in <module>
from pip._vendor import requests, six
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py", line 53, in <module>
from .packages.urllib3.contrib import pyopenssl
File "/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/contrib/pyopenssl.py", line 70, in <module>
ssl.PROTOCOL_SSLv3: OpenSSL.SSL.SSLv3_METHOD,
AttributeError: 'module' object has no attribute 'PROTOCOL_SSLv3'