Some Good Things to Share About the Packages
January 6, 2025 · 0 min read · Page View:
The Annual Oscar Awards ceremony for languages
If you have any questions, feel free to comment below.
As a developer, I have been using many packages in my projects. Sometimes I may even forget the existence of the packages. When I changed my devices or some one else asked me, it’s hard for me to remember everything to recommend. Thus I will try to list the things which I think are very helpful and useful to share with you. Maybe we can even make an “Annual Oscar Awards ceremony” for the things.
Note: This post will be updated regularly.
Python #
Env #
pipdeptree #
Most of the time, when we use the pip list
or pip freeze
command, we can only get all packages that we have installed. We don’t know the dependencies of the packages, and that’s where the advantage of pipdeptree
to show.
# usage
pipdeptree
pip-autoremove #
Sometimes we want to remove the specific package, but usually it has some dependencies packages, on top of know the tree structure and remove them one by one, you can try to use the pip-autoremove
to remove them all.
# usage
pip-autoremove <package_name>
pipreqs #
The pipreqs
package can help us to generate the most simplified requirements.txt
file for the project.
# usage
pipreqs
If you find this blog useful and want to support my blog, need my skill for something, or have a coffee chat with me, feel free to: