
If it is different then add it to both of these variables. Which have already been added to the PYTHON_LIB and LIBRARY_DIRS in 7. Usually the path is '/usr/lib/x86_64-linux-gnu/' LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial /usr/lib/x86_64-linux-gnu/įind the path to libboost_python-p圓5 using command "find /usr -name libboost_python-p圓5*". Both of these should look like this at this point. Add this path to PYTHON_LIB and LIBRARY_DIRS. It will return multiple paths to the library but use Find the path to libpython3.5m by using command "find /usr -name libpython3.5*".LIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib /usr/lib/x86_64-linux-gnu/hdf5/serial Copy the path and add it to LIBRARY_DIRS after appending '/serial' after it. Find the path to hdf5, use command: "find /usr/lib -name hdf5".INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial

Uncomment the line WITH_PYTHON_LAYER := 1.Īdd '/usr/include/hdf5/serial' to the INCLUDE_DIRS variable. PYTHON_INCLUDE should look like this at this point. home/user/.local/lib/python3.5/site-packages/numpy/core/include

#Install python 3.5 ubuntu command line install
Step 8: We will adjust the nfig file in order to install the caffe for Python 3. Step 7: Generate the Makefile configuration file using following command in terminal. If USER_SITE doesn't exist, then use the one with /dist-packages in the end. USER_SITE: '/home/user/.local/lib/python3.5/site-packages'. We will need the path given in USER_SITE. Step 6: Get the Python 3.5 USER_SITE path by typing following command in the terminal.


Open terminal and type following commands in terminal.
#Install python 3.5 ubuntu command line update
Step 1: Update and Upgrade the packages list. This guide assumes that you have already installed CUDA and cuDNN. Use this guide for other version of Python 3. This is a guide to install Caffe with GPU support on Ubuntu 16.04 with Python 3.5. Install Caffe - Ubuntu-16.04 - Python 3.5
