Skip to content

Pin Python to 3.6 in conda install cmd #32

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

Closed
wants to merge 1 commit into from

Conversation

msabramo
Copy link

@msabramo msabramo commented Jan 28, 2020

For some reason, doing a conda install of tensorflow=1.0* appears to
make conda want to downgrade from Python 3.6 to 2.7 and this causes
problems like:

$ sudo docker run -v $(pwd):/home/jovyan/work -it --rm -p 8888:8888 tensorflow-ll-stack
/usr/local/bin/start-notebook.sh: ignoring /usr/local/bin/start-notebook.d/*

Container must be run with group "root" to update passwd file
Executing the command: jupyter notebook
Traceback (most recent call last):
  File "/opt/conda/bin/jupyter-notebook", line 4, in <module>
    import notebook.notebookapp
ImportError: No module named notebook.notebookapp

Fixes: GH-31

For some reason, doing a `conda install` of `tensorflow=1.0*` appears to
make conda want to downgrade from Python 3.6 to 2.7 and this causes
problems like:

```
$ sudo docker run -v $(pwd):/home/jovyan/work -it --rm -p 8888:8888 tensorflow-ll-stack
/usr/local/bin/start-notebook.sh: ignoring /usr/local/bin/start-notebook.d/*

Container must be run with group "root" to update passwd file
Executing the command: jupyter notebook
Traceback (most recent call last):
  File "/opt/conda/bin/jupyter-notebook", line 4, in <module>
    import notebook.notebookapp
ImportError: No module named notebook.notebookapp
```

Fixes: the-deep-learnersGH-31
@jonkrohn
Copy link
Member

This issue is resolved by using my latest TensorFlow LiveLessons repo here, which doesn't rely on conda for installation within the Dockerfile.

@jonkrohn jonkrohn closed this Feb 19, 2020
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

Successfully merging this pull request may close these issues.

Error running Docker container on Mac OS X
4 participants