Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lab 1 notebook can't import tensorflow module #4

Closed
JDLH opened this issue Apr 18, 2017 · 1 comment
Closed

Lab 1 notebook can't import tensorflow module #4

JDLH opened this issue Apr 18, 2017 · 1 comment

Comments

@JDLH
Copy link
Contributor

JDLH commented Apr 18, 2017

When I try running Lab 1 according to the instructions and code in the Lab1 ipython notebook, Lab1.ipynb, the import fails.

It turns out that although I followed the setup instructions in README.md, the ipython instance was using my system-level Python interpreter and libraries, instead of the local ones within the virtualenv.

The solution for me was to execute this shell command,

python -m ipykernel install --user --name=intro_dl

before running jupyter notebook. Further instructions here.

(I am a member of the public following along with 6.S191 from outside MIT. Thank you for making it available!)

JDLH added a commit to JDLH/introdeeplearning that referenced this issue Apr 18, 2017
Add ipykernel install command to setup instructions. This ensures that jupyter has a kernel that refers to the virtualenv and its modules. Addresses yala#4 "Lab 1 notebook can't import tensorflow module" for the "Pip instructions" case. We may need a similar change for the Conda case, but I haven't tested that.
yala added a commit that referenced this issue Apr 24, 2017
Add ipykernel install command to fix issue #4
@yala
Copy link
Owner

yala commented Apr 24, 2017

This seems to fix it for the pip setup, i'll investigate if this applies for the conda installation before closing the issue.

@yala yala closed this as completed Jan 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants