Making sure flask is installed correctly. Step 6/9 : RUN echo "Making sure flask is installed correctly." Removing intermediate container f37ed240c11e => WARNING: A newer version of conda exists. you will need to download and install XQuartz on your computer. # To deactivate an active environment, use We recommend that you install and use the Conda package manager to install software on. X11 extensions you might have to upgrade the X11 server or use VNC. ![]() Step 4/9 : RUN conda env create -f environment.ymlĬollecting package metadata (repodata.json). Sending build context to Docker daemon 4.608kB So the final working Dockerfile should look like: Most of these issues stem from that fact that conda, like other package managers, has limited. The final resort to this problem is by using conda run -n env instruction which actually runs inside the conda environment. Unfortunately, issues can arise when conda and pip are used together to create an environment, especially when the tools are used back-to-back multiple times, establishing a state that can be hard to reproduce. ENTRYPOINT python run.py but this won’t work since it breaks down the container. An alternative to this is the shell form of ENTRYPOINT i.e. This is due to the fact that we are using exec form of ENTRYPOINT instruction which doesn’t actually start a shell session. The Anaconda Distribution chose not to provide X11 or GL packages, so we use CDT packages. It will work perfectly fine and you will be able to build a Docker image, however, when you run a container based on that image, it will result in the same error as above. Conda-build automatically determines the patch strip level. point of the corresponding conda environment so that DSS uses it instead of the default R command. Now, since each RUN instruction is a separate run of bash, adding conda activate command to the ~/.bashrc of the current user should work. Note that you might need to also install XQuartz. Since the XQuartz X11 package clobbers Apples X11.app, their software update will clobber the XQuartz X11 package. Update individual packages, for example spyder: conda update spyder. Open a terminal (see step 1 in Running the tests from the console) Update the conda program (this manages the updating) by typing the following command into the console: conda update conda. Thus, in the above example Conda environment is activated in the first RUN and later RUNs are new shell sessions without Conda activation. OS X Software Updates have included some of the work done by the XQuartz project, but for various reasons, Apple cannot ship the latest and greatest version offered by the XQuartz site. Updating packages in the Anaconda installation. So the problem is that each RUN instruction in a Dockerfile executes in a separate run of bash. The command '/bin/bash -login -c python -c "import flask"' returned a non-zero code: 1 ModuleNotFoundError: No module named 'flask'
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |