anschelburk / nutrient_guide

Apache License 2.0
0 stars 0 forks source link

Create your requirements.txt file #7

Open ryaustin opened 9 months ago

ryaustin commented 9 months ago

Creating your requirements.txt file and committing it to your repo means that I or any one with access to your repo can easily install all project dependencies.

Definition: requirements.txt is a file that contains a list of packages or libraries 
needed to work on a project that can all be installed with the file. It provides a 
consistent environment and makes collaboration easier.

I use pip for dependency management. That doesn't mean you can't continue using conda. To create a pip-compatible requirements.txt file from a Conda environment, you can use the following approach.

The outputted file 'requirements.txt' should be committed with your code. I can then use this file to install all the required dependencies and run your project on my own machine.

anschelburk commented 9 months ago

Appreciate it - thank you. I'm totally open to using pip, and other command line processes - I just don't have much experience with it, and have struggled to find reliable info on how to do it in the past (my past attempts using command line looked a lot like our last call, when we tried to commit code from VS Code to GitHub).

Do you have any recommendations for pages I could look at that give an overview of the command line and how it's used? My (very basic, possibly wrong) understanding is that it's essentially an IDE that can be used to give commands directly to your computer's OS, rather than to a specific program; but my guess is that in a typical software job, I'd need to have a more complete understanding of how to use it. If you have any recommendations, I'd love to look at them.

ryaustin commented 9 months ago

You're welcome. One of my favorite playlists to recommend is Missing Semester. Follow along with this and see how you feel after: https://youtu.be/i0rf1gpKL1E?si=tVtJrZrkyI5zod7L

ryaustin commented 9 months ago

how is this going Anschel?

anschelburk commented 9 months ago

The code didn't seem to work - I took a screenshot, which I included in the Nutrient Guide Coding Map, and tried to also include below as well. Maybe we can talk about it on today's call?

image

anschelburk commented 9 months ago

You're welcome. One of my favorite playlists to recommend is Missing Semester. Follow along with this and see how you feel after: https://youtu.be/i0rf1gpKL1E?si=tVtJrZrkyI5zod7L

I had a little trouble following this video. Tried a few others to try and get the basics - here's a few I found helpful, to start: