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
#3
Old this last statement of course the command is

pip install -r requirements

That requires the requirements.txt file to be inside the newly created
conda environment.

It my case it clearly is not and I do not know how to get it in.

My case the requirements.txt is in the base environment. So maybe this dual command which I saw on line could work.

1. cona create -y --name py33 python==3.30


and


2. conda install -f -y -q --name py33 -c conda-forge --file requirements.txt

would work.

Now I do not know about the "-c conda-forge" option in that command. I know the rest, but what is conda-forge doing in there?

Here is the link where I got the command.

https://stackoverflow.com/questions/5104...target-lib

Any help appreciated. Thanks in advance.

Respectfully,

ErnestTBass
Reply


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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Help creating shell scrip for python file marciokoko 10 1,637 Sep-16-2023, 09:46 PM
Last Post: snippsat
  Confused over Conda Package manager vs PIP JanOlvegg 3 1,385 Mar-09-2023, 02:09 PM
Last Post: JanOlvegg
  How to deactivate correctly a conda environment NoNameoN 2 2,199 Nov-04-2022, 01:43 PM
Last Post: NoNameoN
  Creating csv files from Excel file azizrasul 40 6,672 Nov-03-2022, 08:33 PM
Last Post: azizrasul
  Creating file with images BobSmoss 1 1,472 Jan-08-2022, 08:46 PM
Last Post: snippsat
  SSL error while trying to update conda ilango 0 2,264 Nov-04-2021, 08:38 AM
Last Post: ilango
  Creating csv file from another file pisike 0 1,666 Nov-24-2020, 02:02 PM
Last Post: pisike
  Error: How to to close and restart your shell after running 'conda init' angelica 3 10,445 May-27-2020, 10:00 AM
Last Post: snippsat
  Creating a pdf from file DT2000 4 2,433 Apr-03-2020, 07:16 PM
Last Post: DT2000
  Installing a new package using pip in conda environment firebolt7 1 2,642 Nov-18-2019, 12:31 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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