Comments (2)
@alexander-smolyakov you are mixing different channels here:
- the anaconda3 container has all the anaconda3 packages from defaults installed into the so called base env
- the miniconda3 container has only conda + its dependencies in the base env
- you try to install tensorflow / pytorch from conda-forge, which is an entire different channel compared to defaults!
- it is best practise to leave the base env either untouched (and instead create a new env with the packages from a different channel) OR install tensorflow / pytorch from defaults.... reason is that installing packages from different channels with many dependencies easily causes conflicts.... the more there already is in the base env (lots of stuff in the anaconda3 case) the more likely this happens.
in other words:
FROM continuumio/miniconda3
# lets create a new env
RUN conda create --name test-env -c conda-forge --yes \
tensorflow \
pytorch
OR
FROM continuumio/anaconda3
# lets install into base, but only packages from defaults (no extra --channel parameter)
RUN conda install --yes \
tensorflow \
pytorch
from docker-images.
@dbast, thanks for your reply. I tested the suggested options. Creating a new environment works fine.
OR install tensorflow / pytorch from defaults....
FROM continuumio/anaconda3
# lets install into base, but only packages from defaults (no extra --channel parameter)
RUN conda install --yes \
tensorflow \
pytorch
When trying installation from the default channel, the same issue appears, and conda tries to resolve some conflicts in the environment during installation which take a lot of time:
=> [2/2] RUN echo "conda install tensorflow" && conda install --yes tensorflow && echo "conda install pytorch" && conda install --yes pytorch 676.8s
=> => # Collecting package metadata (current_repodata.json): ...working... done
=> => # Solving environment: ...working... unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
=> => # Solving environment: ...working... unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.
=> => # Collecting package metadata (repodata.json): ...working... done
=> => # Solving environment: ...working... unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
=> => # Solving environment: ...working...
I wander if something is broken in the base environment.
from docker-images.
Related Issues (20)
- Critical vulnerabilities found in docker images. HOT 2
- continuumio/miniconda:4.7.12 container is broken HOT 1
- CVE-2019-19814 found in continuumio/miniconda3:latest HOT 2
- Conda installed packages not found in container any more.
- Broken symlinks in miniconda3 image
- Conda 4.12.0 has been released
- Make it clearer that conda/miniconda3 Docker image is "deprecated" / unmaintained?
- pip installed with conda in container not found HOT 1
- [renovate on-prem migration] Obsolete Dependency Dashboard
- Python 3.7 with continuumio/miniconda3 HOT 2
- Add tag as a label to image HOT 1
- QUESTION - docker-miniconda with Jupyter - assign volume HOT 1
- Please update Python version HOT 1
- Use cache mounts instead of --clean?
- continuumio/miniconda3:latest manifest type Regression v2 to v1 HOT 1
- Dependency Dashboard
- note book is not working in anaconda HOT 1
- (auto) update miniconda HOT 3
- apt-get update fails with continuumio/miniconda3:latest docker image HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-images.