Skip to main content

“how to uninstall all python packages” Code Answer’s

1 pip3 freeze | xargs pip3 uninstall -y


#Write all modules to a txt file

2 pip freeze > requirements.txt


#Now to remove one by one:

3 pip uninstall -r requirements.txt


#If we want to remove all at once then:

 4 pip uninstall -r requirements.txt -y


how to delete all pips
type "pip freeze" to get list of all installed packages.
Copy all the names into a text file name it pkg.txt
then type the following "pip uninstall -r pkg.txt"
you will be asked to proceed type "y" and enter

Comments

Popular posts from this blog

Connect and Configure MongoDB in Django Project

  Django, a high-level Python web framework, is well-known for its robustness and versatility. While Django natively supports popular databases like PostgreSQL and MySQL, you may want to integrate a NoSQL database like MongoDB for specific use cases. MongoDB’s flexibility and scalability make it an excellent choice for handling unstructured data. In this blog, we will walk you through the process of connecting MongoDB to a Django project, enabling you to harness the power of NoSQL in your web applications. Prerequisites: Before we begin, ensure you have the following prerequisites in place: Django installed on your system. MongoDB database server installed and running. Basic familiarity with Django project structure and database concepts. Virtual Environment, this is optional but recommended. You check our blog  here . Note:  For this tutorial, we are using our basic  skeleton project  for Django. You can also download the project from  here . Step 1: Insta...

Mongodb-CheatSheet

  All MongoDb commands you will ever need (MongoDb Cheatsheet) In this post, we will see a comprehensive list of all the    MongoDB  commands you will ever need as a MongoDB beginner. This list covers almost all the most used commands in MongoDB. I will assume that you are working inside a collection named 'comments' on a MongoDB    database  of your choice 1. Database Commands View all databases show dbs Copy Create a new or switch databases  use dbName Copy View current Database db Copy Delete Database  db . dropDatabase ( ) Copy 2. Collection Commands Show Collections show collections Copy Create a collection named 'comments' db . createCollection ( 'comments' ) Copy Drop a collection named 'comments' db . comments . drop ( ) Copy 3. Row(Document) Commands Show all Rows in a Collection  db . comments . find ( ) Copy Show all Rows in a Collection (Prettified) db . comments . find ( ) . pretty ( ) Copy Find the first row matching the ob...

Top 5 Programming Languages To Learn in 2021

  Top 5 Programming Languages To Learn in 2021 We all are aware of technology and its development at an alarming rate. It's prevalent to see one technology overpassing the other with great updations and developments. To keep ourselves in the field of technology, one thing always remains intact - learning a programming language. Nowadays, the programming language is the basic building block of any technological development. It’s a pre-requisite of any major coding field. For example:- for machine learning, you need to learn languages like python, R, etc.; for web development, you need to learn HTML, CSS, JavaScript, etc., and the list goes on. If you are in this field, you should not know just one programming language. At the same time, you don't want to be an excellent example of the famous saying, " Jack of all trades master of none." To ensure that you are not a jack of all trades and a master of none, you should start by learning one language to perfection and deve...