Coder Social home page Coder Social logo

package-unistaller's Introduction

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 [email protected] or join facebook community.(●'β—‘'●)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.