Installing Keras,tensorflow (GPU) edition common errors and handling methods __keras

Source: Internet
Author: User
Tags keras

Recently tried to learn tensorflow, but because the problem of learning resources leads to a series of problems, in simple terms, to learn tensorflow, to directly view the guidance of the GitHub, rather than according to the blog, Baidu on the guidance, because the version of the change too fast, similar to the College of Geeks, Blog guidance and code has not run, according to the error step-by-step processing instead into a dead end, the more mistakes, the following gives me in the installation of Keras and TensorFlow encountered errors. errors and routine processing CP: Unable to get "cuda/include/cudnn.h" File Status (STAT): No file or directory

Note To open the relevant files and Files folder operation permissions, if it is reinstall CUDNN, note that the original Cudnn.h file. couldn ' t open CUDA Library libcurand.so. Ld_library_path:

and add the following two lines to your ~/.BASHRC file
Export ld_library_path= "$LD _library_path:/usr/local/cuda/lib64"
Export Cuda_home=/usr/local/cuda

VI./BASHRC
source./BASHRC
Vim i insert, ESC,: w Save
You can also open the environment variable configuration file through sudo gedit/ext/enviroment, and the changes cannot be found CUDNN

Here's how to write link content processing

If you follow the online tutorials still complain.
Update the latest version of Pip,tensorflow. Restart the terminal, the previous reported errors will disappear.

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.