Giter Site home page Giter Site logo

Comments (2)

stevengj avatar stevengj commented on July 24, 2024

If you don't want PyPlot to install its own Conda distro and use that to install matplotlib, then you shouldn't use ENV PYTHON="".

from pyplot.jl.

Octogonapus avatar Octogonapus commented on July 24, 2024

That's fair, my mistake. Here is our actual use case:

FROM ubuntu:22.04

RUN apt-get update -y && \
    apt-get upgrade -y && \
    apt-get install -y wget python3-venv && \
    rm -rf /var/lib/apt/lists/*

RUN wget -nv https://julialang-s3.julialang.org/bin/linux/x64/1.9/julia-1.9.1-linux-x86_64.tar.gz && \
    tar xf julia-1.9.1-linux-x86_64.tar.gz && \
    rm julia-1.9.1-linux-x86_64.tar.gz && \
    ln -s /julia-1.9.1/bin/julia /usr/local/bin/julia

RUN python3 -m venv venv
RUN . venv/bin/activate && \
    pip install -U pip && \
    pip install -U matplotlib==3.7.0
ENV PYTHON="/root/venv/bin/python"
RUN julia -e 'import Pkg; Pkg.add("PyPlot")'
RUN julia -e 'using PyPlot'

The same error occurs:

 > [7/7] RUN julia -e 'using PyPlot':                                                                                                                                                                               
#0 1.434 [ Info: Installing matplotlib via the Conda matplotlib package...                                                                                                                                          
#0 1.435 [ Info: Running `conda install -y matplotlib` in root environment                                                                                                                                          
#0 1.892 Collecting package metadata (current_repodata.json): ...working... done                                                                                                                                    
#0 17.04 Solving environment: ...working... unsuccessful initial attempt using frozen solve. Retrying with flexible solve.                                                                                          
#0 23.96 Solving environment: ...working... unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.
#0 27.86 
#0 27.86 ResolvePackageNotFound: 
#0 27.86   - conda==23.1.0

from pyplot.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.