Caffe study notes - Windows7 64-bit+caffe+anaconda2.7+python interface configuration

Python2.4 was originally installed on the computer. This time, anaconda2.7 was re-downloaded in order to match the interface (official website: https://www.continuum.io/downloads ). 1. Install anaconda2.7 before starting. It is possible to continue to next during the installation process, and select "just me" at this step:


Then when choosing these two options, select both: the first is to add environment variables, and the second is to use Python 2.7 by default


After the installation is complete, win+R and then cmd to see if it is installed. You can try pip list to see which packages are installed.

2. After installation, we start to configure CommonSettings.props:



As when configuring the MATLAB interface, import the installation path of anaconda.

3. Open VS, compile pycaffe, and generate a solution:


After the compilation is complete, the following folders appear under release:


Just copy the caffe folder to D:\software\Anaconda2\Lib\site-packages.


4. Test import caffe in cmd:


Got the error: ImportError: No module named google.protobuf.internal  

Install directly here: pip install protobuf 


Retest after the installation is complete: it can be imported successfully, indicating that the configuration is successful


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325791386&siteId=291194637
Recommended