containers icon indicating copy to clipboard operation
containers copied to clipboard

Set PYTHONPATH in Dockerfile not working

Open dineshvelmuruga opened this issue 4 years ago • 2 comments

If I set PYTHONPATH ins dockerfile like below, its not getting reflected in the container

ENV PYTHONPATH="$PYTHONPATH:/path/to/libraries/"

dineshvelmuruga avatar Dec 15 '20 11:12 dineshvelmuruga

Hi,

Made it work for the databricksruntime/python image with:

ENV PATH="/databricks/conda/envs/dcs-minimal/bin:${PATH}"

Hope this helps

jcaloud avatar Jan 07 '21 14:01 jcaloud

@dineshvelmuruga PYTHONPATH may be overwritten. If you want to install python libraries, can you take a look at our virtualenv or conda docker images?

evanye avatar Jan 14 '21 23:01 evanye