deep-learning-with-python-notebooks icon indicating copy to clipboard operation
deep-learning-with-python-notebooks copied to clipboard

Installation of the required libraries

Open AleCx4 opened this issue 4 years ago • 4 comments

I practically spent the entire day trying to run the scripts inside of the first few chapters of the book in order to see if they would work on my machine. I have 3 total computers (1 of them being a windows machine, the other 2 are Linux machines) and I cannot for the life of me get to the comfortable point in which I can properly have the first jupyter notebook running smoothly.

Can anyone share a requirements.txt for a particular Python version(assuming it is python 3.6 as the book requires) for which I can create a conda environment to work through the book? or a yaml file would be great as well. I am enjoying the book immensely, but I am having a hard time trying to get my setup running and I refuse to use some cloud service since I really want to be able to run this inside of my personal machine. The book instructions state a bunch of installation scripts for Python, but I don't want to install them globally, would much rather have them installed inside of a conda environment.

AleCx4 avatar Jul 10 '20 03:07 AleCx4

You can run all scripts on a conda environment. What is your Keras version? Are you using TF.Keras or only Keras? What error do you get when running Listing 2.1 ? https://github.com/fchollet/deep-learning-with-python-notebooks/blob/master/2.1-a-first-look-at-a-neural-network.ipynb

MohammedHAlali avatar Jul 10 '20 13:07 MohammedHAlali

Hi @MohammedHAlali, I am currently working from a different computer, I had tried running the first example of the book in 2 different Linux Machines, one with Pop OS installed (latest) and another one with Linux Mint (19), my errors kept stating that Tensorflow was not installed, Keras was not installed and items of that nature. Some other errors were from the side of Jupyter (such as stating that the kernel had died).

AleCx4 avatar Jul 11 '20 15:07 AleCx4

Hi @AleCx4 Make sure you install TensorFlow correctly and it's running without error. Then you can use the code in this book

MohammedHAlali avatar Jul 11 '20 16:07 MohammedHAlali

Hi @AleCx4

I have a free GPU-based notebook set up on Paperspace for all of the examples in the book. They have a pretty nice platform (I am not affiliated with them in any way) and you may want to consider giving them a try. Again, I am not using anything aside from freely available resources. I'll post a link to my notebook. Cheers.

https://console.paperspace.com/te2cwg09q/notebook/prkx8hhsa

laprej avatar Jul 13 '20 15:07 laprej