Sunday, April 28, 2024
77
rated 0 times [  77] [ 0]  / answers: 1 / hits: 247671  / 1 Year ago, sun, march 5, 2023, 10:26:38

I tried sudo apt-get install cPickle and python3.4-cPickle but it doesn't work.


More From » software-installation

 Answers
2

There is no cPickle in python 3:




A common pattern in Python 2.x is to have one version of a module implemented in pure Python, with an optional accelerated version implemented as a C extension; for example, pickle and cPickle. This places the burden of importing the accelerated version and falling back on the pure Python version on each user of these modules. In Python 3.0, the accelerated versions are considered implementation details of the pure Python versions. Users should always import the standard version, which attempts to import the accelerated version and falls back to the pure Python version. The pickle / cPickle pair received this treatment.




-Source.


[#16315] Monday, March 6, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
afisird

Total Points: 193
Total Questions: 112
Total Answers: 111

Location: Angola
Member since Mon, Jul 12, 2021
3 Years ago
;