Docker image is missing some important packages
See original GitHub issueHi all,
I’m trying to open a Jupyter notebook in the Docker image as per CONTRIBUTING.md
, and when running from a (relatively new) Docker image I am finding that I cannot run import arviz as az
without finding that we are missing the following packages:
scipy
xarray
matplotlib
netCDF4
Once I installed these for packages, I was finally able to import the package.
To Reproduce
- Download docker image.
- Open Docker Jupyter notebook.
- Try to import
arviz
package. - For whatever module it complains its missing, go back, pip install in the Docker image, and then restart.
- Repeat this and you get the 4 missing packages above.
Expected behavior I should be able to import the package without any trouble from a clean Docker image.
Additional context MacOSX 10.14 computer, Docker image downloaded on 2019-12-03 at around 3 PM PST.
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
Missing python packages in Docker container - Stack Overflow
From your dockerfile, it looks like certifi is being installed after you run spacy which from the stack trace seems to rely on...
Read more >We reduced our Docker images by 60% with –no-install ...
We reduced our Docker images by 60% with –no-install-recommends ... Still, the recommended and suggested packages are not essential, ...
Read more >Packages not accessible after build - Docker Desktop for Mac
After I build, I have this coming from the container: /usr/local/bin/gunicorn: No such file or directory. Clearly, I've told it to install.
Read more >Missing files from docker image · Issue #2299 - GitHub
Files are missing according to the error log. The missing file is not always the same.
Read more >Installing system packages in Docker with minimal bloat
Learn how to minimize your Docker image size while installing or updating system packages on on Debian, Ubuntu, and RHEL.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I mean, I’m trying to contribute as part of PyDataLA, so I’m happy to swap out the commands.
That resolves it @OriolAbril , thanks for figuring it out!