Skip to content

Generate Deps automatically. #123112

May 9, 2024 · 3 comments · 4 replies
Discussion options

You must be logged in to vote

Hey there @GHuserE

On Python, you can use the fallowing:

pip3 freeze > requirements.txt

This will list all installed packages into a file, including the precise version number. However, if you install a lot of other packages for other things, then this list may contain unnecessary elements. So, you should make sure that you use a virtual environment for development. Maybe consider doing your experiments in a seperate environment.

Here is how you setup an environment:

python3 -m venv location
source location/bin/activate

Then, running pip install <pck> will install the package in a clean environment and you can avoid pip freeze being polluted.

If this helps you, consider marking it as the …

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@GHuserE
Comment options

Answer selected by GHuserE
Comment options

You must be logged in to vote
1 reply
@GHuserE
Comment options

This comment was marked as off-topic.

@CopperEagle
Comment options

@GHuserE
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Programming Help Programming languages, open source, and software development.
4 participants