You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
setup.py appears to be the current standard and is more popular than requirements.txt. However, it is also harder to deal with since it is just code and people do odd things in code. Some applications have both requirements.txt and setup.py where setup.py just reads in requirements from requirements.txt.
setup.py will include a call to setup() with the install_requires keyword:
setup(
# other metadata here...install_requires=[ ... ],
)
The requirements appear to have a similar syntax to requirements.txt.
setup.py
appears to be the current standard and is more popular thanrequirements.txt
. However, it is also harder to deal with since it is just code and people do odd things in code. Some applications have bothrequirements.txt
andsetup.py
wheresetup.py
just reads in requirements fromrequirements.txt
.setup.py
will include a call tosetup()
with theinstall_requires
keyword:The requirements appear to have a similar syntax to
requirements.txt
.Examples:
*Flask
It's also weirdly common to put the requirements in a variable first:
The text was updated successfully, but these errors were encountered: