ubuntu16.0 Anaconda3 installation TensorFlow Keras Error Collection

Source: Internet
Author: User
Tags keras

Today use Anaconda3 to install TensorFlow and Caffe, the main reference blog

Now the computer environment:

ubuntu16.04

cuda8.0

cudnn6.0

Anaconda3

1. From Scipy.misc import imread,imresize error

Hint error importerror:cannot import name Imread

But import scipy is displayed correctly.

Solution: Pip install Pillow.

2. Libcublas.so.9.0:cannot open Shared object file:no such file or directory
Cause: The new version of TensorFlow (after 1.5) does not support CUDA8.0. Either drop the Tennsorflow version or the Cuda version

Pip install tensorflow-gpu==1.4 to choose to install a specific version TensorFlow

3. Swig/python detected a memory leak of type ' int64_t * ', no destructor found "

Cause: tensorflow1.3 version itself bug

Solution: Install tensorflow1.4

4.anaconda Installation Caffe Problem

Cause: I don't know how to change makefile.config.

Solution: Follow the blog plan honestly use your computer to bring your own Python installation

5. Caffe installation completed test times error: Libcublas.so.8.0:cannot open Shared object file:no such file or directory
Cause: The cuda8.0 Library was not found and was not shared
Solution: Follow the blog scenario by entering the following command

sudo cp/usr/local/cuda-8.0/lib64/libcudart.so.8.0/usr/local/lib/libcudart.so.8.0 && sudo ldconfig

sudo cp/usr/local/cuda-8.0/lib64/libcublas.so.8.0/usr/local/lib/libcublas.so.8.0 && sudo ldconfig

sudo cp/usr/local/cuda-8.0/lib64/libcurand.so.8.0/usr/local/lib/libcurand.so.8.0 && sudo ldconfig

ubuntu16.0 Anaconda3 installation TensorFlow Keras Error Collection

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.