At the end of the installation KERAS,TENSORFLOW,PYTORCH,OPENCV

Source: Internet
Author: User
Tags pytorch keras
This article is void

My next installment is the TensorFlow and Keras truth.

Environment:

Anaconda4.2;python3.5;windows10,64,cuda

Previous hard cuda9.1 useless, we want to use the GPU must choose cuda8.0, I thought the official will be corresponding update, naive. First TensorFlow don't recognize, moreover cudnn own all do not recognize, only 8.0.

Keras and TensorFlow are both Pip,pytorch and OpenCV are going to find WHL. About Keras backend and installation tensorflow, I do not know which link out of the problem, the other import in Pycharm are no problem, only import TensorFlow will appear: Process finished with exit Code " -1073741819 (0xc0000005)", in Cmd Python, is also the appearance of Python can not run, direct crash exit.

Read a lot of blog, some say is pycharm problem, some say is memory leak, some say is the problem of windows, some say is the Python version problem, and so on.

I may have made a mistake at the time:

Go directly to the environment variable new keras_backend, the value is TensorFlow. But I hesitate, this is not a path, and whether to add English quotes. have tried, or error, but in the search for Keras.josn file, found that backend is already tensorflow (that the environment variable Keras deleted), is the previous link is right (or Keras default is TensorFlow). Because in the repeated unloading of a reload tensorflow when Keras, no TensorFlow, Keras will only report no backend error, and TensorFlow, he will be like TensorFlow Import panic '. Later, the import of other modules can be used normally, obviously with the external hardware does not matter, then the TensorFlow uninstall clean, not only pip uninstall, there are tensorflow-board and other documents, deleted (emphasis one).

Because remember that before installing Keras, you need Conda to install Libpython and MinGW (a book proposal), and then I will upgrade my python3.5.2 and some related packages to 3.5.4, and I'll take it after I'm done. Sure enough to install TensorFlow played a bad role. Well, just update all the packages and upgrade to 3.5.4 (emphasis II).

Combine emphasis one and focus two, perfect.

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.