DOsinga / deep_learning_cookbook

Deep Learning Cookbox
Apache License 2.0
686 stars 335 forks source link

Cannot run the first command to run the code #61

Closed DylanDan closed 5 years ago

DylanDan commented 5 years ago

os: centos7 64bit when i run the command first time which mentioned in the book as : source venv3/bin/activate jupyter notebook i encountered the issue like: During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/code/deep_learning_cookbook/venv3/bin/jupyter-notebook", line 6, in from notebook.notebookapp import main File "/home/code/deep_learning_cookbook/venv3/lib/python3.7/site-packages/notebook/notebookapp.py", line 86, in from .services.sessions.sessionmanager import SessionManager File "/home/code/deep_learning_cookbook/venv3/lib/python3.7/site-packages/notebook/services/sessions/sessionmanager.py", line 13, in from pysqlite2 import dbapi2 as sqlite3 ModuleNotFoundError: No module named 'pysqlite2'

DOsinga commented 5 years ago

Hi,

Did you per chance overlook the line to install the dependencies?

image

DylanDan commented 5 years ago

Thanks! fixed it, as my os lack the lib:sqlite-devel after installing this and re- install the python3, it works well. and still have a quesion: what the env you suggest to run your program, Linux or windows?

DOsinga commented 5 years ago

Linux, for sure. I've worked on this on OSX and Linux and it should work, but to be honest, dependencies even with pip are still often a mess when it comes to external libraries. On Windows this seems worse since a lot of wheels don't have the right libraries for Windows.

DylanDan commented 5 years ago

Thanks again! i use centos7 64bit to run your code. very nice