Python Forum
Creating Conda env from requirments.txt file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Creating Conda env from requirments.txt file
#1
I have created a conda environment using the command

conda create -n env-name

Now I can add the packages that I want by putting names and versions on the end of this command,but I want a whole set of packages which are available through a requirements.txt file.

However, the requirements.txt file is not in the conda environment that I just created, and i do not know how to put the requirements.txt file into the newly created conda environment or even if I should.

There may be a work-around.

The requirements.txt is in my base environment, and how do I move it into my newly created conda environment or even if I should.

The may be a method to create the conda env. and have it install only what is specified in the requirements.txt file. with said file not in the conda env.. If there is how do I do it?

I believe it is

conda create --target ...

I do not know the rest.

Any help appreciated. Thanks in advance.

Respectfully,

ErnestTBass
Reply


Messages In This Thread
Creating Conda env from requirments.txt file - by ErnestTBass - Apr-22-2020, 06:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  will using conda fix my frustration? snakes 4 1,533 Jul-24-2024, 06:32 AM
Last Post: buran
  Help creating shell scrip for python file marciokoko 10 3,726 Sep-16-2023, 09:46 PM
Last Post: snippsat
  Confused over Conda Package manager vs PIP JanOlvegg 3 5,682 Mar-09-2023, 02:09 PM
Last Post: JanOlvegg
  How to deactivate correctly a conda environment NoNameoN 2 5,729 Nov-04-2022, 01:43 PM
Last Post: NoNameoN
  Creating csv files from Excel file azizrasul 40 13,324 Nov-03-2022, 08:33 PM
Last Post: azizrasul
  Creating file with images BobSmoss 1 2,116 Jan-08-2022, 08:46 PM
Last Post: snippsat
  SSL error while trying to update conda ilango 0 2,842 Nov-04-2021, 08:38 AM
Last Post: ilango
  Creating csv file from another file pisike 0 2,099 Nov-24-2020, 02:02 PM
Last Post: pisike
  Error: How to to close and restart your shell after running 'conda init' angelica 3 12,091 May-27-2020, 10:00 AM
Last Post: snippsat
  Creating a pdf from file DT2000 4 3,351 Apr-03-2020, 07:16 PM
Last Post: DT2000

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020