Skip to content

sa-if/Package-Unistaller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Package Uninstaller.βœŒοΈπŸ‘

A python script to Uninstall all python packages at once.πŸ™‚

Work Model 🀩

  • Creates a file named requirements.txt and writes the output of the pip freeze command to it. The pip freeze command lists all the packages that are currently installed in your Python environment and their versions.

  • Reads the contents of the requirements.txt file, which contains the list of packages and their versions, and splits them into a list of strings, where each string is a package name and version.

  • Loops through the list of packages and uninstalls each one using the pip uninstall command. The -y option is used to answer "yes" to any prompts asking to confirm the uninstallation.

    This code can be used to create a snapshot of the currently installed packages in a Python environment and then to uninstall all of those packages at once. This can be useful for scenarios where you want to start with a clean slate and have no installed packages, or when you want to ensure that you are only using the packages that are explicitly listed in the requirements.txt file.🍊

Prerequisites πŸ€–

You need to have the following software installed on your machine:

  • Python 3.x
  • pip
  • Required packages
  • Permission

Usage πŸŽƒ

  • To use this script, simply run the following command: python main.py

Error handlinge πŸ€”

  • The script includes error handling for both the creation of the requirements.txt file and the uninstallation of packages. In case of any errors, the error message will be printed to the console.

License πŸͺͺ

The project is licensed under MIT license. See the license file for details.

Authors πŸ‘¦πŸ»

Used By πŸ§‘β€πŸ€β€πŸ§‘

This project is used by the following individual:

  • Saif Islam
  • Saimoon Islam

Contributions πŸ˜‰

Feel free to contribute to this project by opening an issue or submitting a pull request.

Support πŸ’πŸ»β€β™‚οΈ

For support, email saifislam23122005@gmail.com or join facebook community.(●'β—‘'●)

About

One click all python package uninstaller.πŸ€–

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages