Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to pip install pickle under Python 3.9 in Windows?

I need the pickle package installed under my Python 3.9 under Windows 10.

What I tried

When trying with pip install pickle I was getting:

ERROR: Could not find a version that satisfies the requirement pickle (from versions: none) ERROR: No matching distribution found for pickle

Then I tried the solution suggested in this question using pip install pickle5 but got the following error:

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

I then tried to install the Tool suggested by the error but got same error message after trying again pip install pickle5.

Question

Which is the correct way to install pickle package under Python 3.9 in Windows 10?

UPDATE

There is no need to install pickle module as it comes already installed along with Python 3.x. Just needed to do import pickle and voila!

like image 741
Cedric Zoppolo Avatar asked Dec 12 '25 06:12

Cedric Zoppolo


2 Answers

Cedric UPDATED answer is right. Pickle exists within Python 3.9. You don't need pip install pickle. Just use it.

import pickle
like image 141
Minh Nguyen Avatar answered Dec 14 '25 19:12

Minh Nguyen


I found a way that I'm not sure it's the optimal but it works.

I did pip install pickle4

And then in the script just

import pickle4 as pickle

UPDATE

There is no need to install pickle as it's already within Python 3.9. Just needed to import pickle and voila!

like image 39
Cedric Zoppolo Avatar answered Dec 14 '25 20:12

Cedric Zoppolo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!