Updated the script to remove the first and last line of the environment.yml.
I am not sure about the first line (the name key) but I tested the creating command with the new file and it seems to be working. The last line does not seem necessary as per this link.
My guess
As far as I learned from navigating online, using env.yml can incorporate additional packages that are not related to python per se (e.g. sqlite3 cli); whereas requirement.txt can only list python packages.
Updated the script to remove the first and last line of the environment.yml. I am not sure about the first line (the
name
key) but I tested the creating command with the new file and it seems to be working. The last line does not seem necessary as per this link.My guess As far as I learned from navigating online, using env.yml can incorporate additional packages that are not related to python per se (e.g. sqlite3 cli); whereas requirement.txt can only list python packages.
Let me know if this looks okay.