Where do I find the requirements.txt file?
Readme.md says:
Install dependencies from the root directory:
pip install -r requirements.txt
Where do I find the requirements.txt file?
Readme.md says:
Install dependencies from the root directory:
pip install -r requirements.txt
Hello @Alex69 , welcome!
To run and explore the Ungraded Lab, you donāt need to follow any of the instructions in the README.md file, just run the cells in the Lab notebook.
You also donāt need to open the README.md or any files in M2/ungraded_labs/M2_UGL_2; those were only used to set up the notebook. You can take a look at how things are set up under the hood, but thereās no need to make any changes there. (requirements.txt is a file that lists all the packages and their versions that a project depends on - these have already been installed)
Dear Anna_Kay,
thanks for your quick answer. All this is known to me, but I want to āre-engineerā your Jupiter notebook in my Visual Studio Code workspace. So it would have been very convenient if you provide the requirements.txt file for setting up to .venv environment. Especially if you mention this file in the Readme file you should also provide this file. Otherwise it is confusing for the user.
Thanks for this great short course!
Best regards from Germany,
Alex
Oh, I see. That sounds like a reasonable request
. Iāll pass it along to the development team.
Unfortunately, I canāt guarantee when theyāll be able to review it. Since youāre not a beginner, it might take you less time to reconstruct the requirements.txt file.
In any case, Iāll update this thread as soon as thereās an update or response from the team.
Best,
Hi @Alex69 ,
Short term fix - I tried this code below in a code cell that I added to the notebook. You can then copy and paste the output into a requirements.txt file:
import sys
import subprocess
result = subprocess.run([sys.executable, ā-mā, āpipā, ālistā, āāformat=freezeā],
capture_output=True, text=True)
print(result.stdout)