Closed akshgpt7 closed 4 years ago
@Vibhu-Agarwal , I can't understand what else to add to the file, since using pip install -r requirements.txt
is working and installing all modules required.
Quoting from this article
The problem we run into when we share our Python code is this: Not everyone has the same packages, or the same versions of those packages, installed and ready to rock when they grab your code from GitHub and try to run it.
Sure, by installing the four libraries currently mentioned in the README, executes the code, but some time in future, the dependencies might not always favour us. Maybe sometime in future, one of the libraries gets updated with some errors (yes, sometimes they do - even after thorough reviews from a lot of experienced mentors) and so our app fails to run because one of its dependencies isn't imported correctly or fails on a certain test case. [See Regression]
So it's always better to include what you have on your system and of what version so that you're sure that other person installs the same version of libraries.
So I have to mention the latest version of all packages in the file?
@akshgpt7 Please READ! Official docs are the best resource of learning and then there are articles lying all around. In one of the comments, I mentioned What is a requirements file and how to add it and in my last comment, I quoted from an article and mentioned its link as well. You'll get enough understanding by going through them once.
I've mentioned the version of modules, so that future changes in the module do not affect the app.
@akshgpt7 You never manually add versions in the requirements file. You use pip freeze to show versions of modules installed. Again, PLEASE READ the articles provided in earlier comments to get a better understanding. The links are provided for a reason.
Closes #16