Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

229
Views
Activate anaconda environment within docker container

I am trying to programatically (within Python) replicate the anaconda environment I am working in locally in a Docker container. However, I want to make one Docker image capable of doing this for an arbitrary environment. I see the process looking something like:

  1. Within my local environment, export the anaconda environment I am working in by using the subprocess Python module to run conda env export >> environment.txt.
  2. Start up my Docker container (whose base image is continuumio/anaconda:latest), providing it the environment.txt. The python file the container runs should operate within the Anaconda environment specified by that environment.txt.

I know how to do step 1, but I don't see how I could do step 2; how can I, within a Python script, update the anaconda environment (and install the missing packages) in which it operates?

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!