Caffe导入使用python2而不是python2.7 / ipython笔记本,尽管两者都是2.7.10?

时间:2015-07-16 16:47:39

标签: python python-2.7 ipython caffe

我已经成功编译了caffe库和python模块。

我可以这样做:

Jamess-Air:~ james$ python2 -V
Python 2.7.10
Jamess-Air:~ james$ python2
Python 2.7.10 (default, Jul 13 2015, 12:05:58) 
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import caffe
>>> 
但是,奇怪的是,这失败了:

Jamess-Air:~ james$ python2.7 -V
Python 2.7.10
Jamess-Air:~ james$ python2.7
Python 2.7.10 (default, Jun 19 2015, 15:39:31) 
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import caffe
Segmentation fault: 11
Jamess-Air:~ james$ 

我根本无法理解这一点!每当我尝试使用iPython笔记本运行时,我都会遇到同样的崩溃。

有关可能导致此问题的任何想法,以及我如何修复它,或者至少让iPython Notebook使用不同的python版本以便我可以运行此东西?

谢谢!

0 个答案:

没有答案