1. 程式人生 > >Ubuntu16.04安裝caffe(CPU版本)過程

Ubuntu16.04安裝caffe(CPU版本)過程

具體安裝過程中遇到的幾點問題

1.第三步修改檔案路徑時記得注意空格; 在這裡插入圖片描述 2.錯誤:You are using pip version 9.0.3, however version 10.0.1 is available. You should consider upgr 解決辦法:升級pip版本即可 命令為python -m pip install --upgrade pip 3.升級後又出現錯誤:Traceback (most recent call last): File “/usr/bin/pip”, line 9, in from pip import main

ImportError: cannot import name main 解決辦法: 修改/usr/bin/pip檔案中

from pip import main
if __name__ == '__main__':
    sys.exit(main())

from pip import __main__
if __name__ == '__main__':
    sys.exit(__main__._main())

4.make pycaffe時遇到錯誤如下: touch: cannot touch ‘python/caffe/proto/init.py’: Permission denied Makefile:656: recipe for target ‘python/caffe/proto/init.py’ failed make: *** [python/caffe/proto/init

.py] Error 1 用sudo make pycaffe