# pickle | PHP Extension installer | Build Tool library

## kandi X-RAY | pickle Summary

pickle is a PHP library typically used in Utilities, Build Tool, Composer applications. pickle has no bugs, it has no vulnerabilities and it has medium support. However pickle has a Non-SPDX License. You can download it from GitHub.
pickle - PHP Extension installer [![SensioLabsInsight](https://insight.sensiolabs.com/projects/7e153d04-79be-47e6-b2ee-60cdc2665dd5/small.png)](https://insight.sensiolabs.com/projects/7e153d04-79be-47e6-b2ee-60cdc2665dd5).

Support

• pickle has a medium active ecosystem.
• It has 1428 star(s) with 75 fork(s). There are 61 watchers for this library.
• It had no major release in the last 12 months.
• There are 20 open issues and 88 have been closed. On average issues are closed in 555 days. There are 3 open pull requests and 0 closed requests.
• It has a neutral sentiment in the developer community.

Quality

• pickle has 0 bugs and 0 code smells.

Security

• pickle has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
• pickle code analysis shows 0 unresolved vulnerabilities.
• There are 0 security hotspots that need review.

• pickle has a Non-SPDX License.
• Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

Reuse

• pickle releases are available to install and integrate.
• Installation instructions are not available. Examples and code snippets are available.
Top functions reviewed by kandi - BETA

kandi has reviewed pickle and discovered the below as its top functions. This is intended to give you an instant insight into pickle implemented functionality, and help decide if they suit your requirements.

• Load a configuration file .
• Create a new package
• Build the options .
• Install windows .
• Returns information about the configuration file .
• Fetches an argument from the config .
• Setup the position of the pickle section
• Read a package from a path .
• Fetches the DLL mapping file .
• Get info from PHP constants

## pickle Key Features

PHP Extension installer

## pickle Examples and Code Snippets

default

Grab the latest phar at https://github.com/FriendsOfPHP/pickle/releases/latest
sh


and run using
sh
$php pickle.phar  or add the execute flag sh$ chmod +x pickle.phar

then run as:
sh
$pickle.phar info apcu  You can also rename the phar to "pickle" sh$ mv pickle.phar pickle

so it can be called using pickle only.

And finally you can add it to your path or copy it in /usr/local/bin or your favorite binary directory.

On windows, use
sh
\$ php pickle.phar

or create a .bat containing:

@echo OFF
setlocal DISABLEDELAYEDEXPANSION
c:\path\to\php.exe "c:\path\to\pickle.phar" %*


If someone would be kind enough to write an installer script, we would be eternally thankful :)

Introduction

## Community Discussions

Trending Discussions on pickle
###### Trending Discussions on pickle

QUESTION

Pickle and Numpy versions

I have some old sklearn models which I can't retrain. They were pickled long time ago with unclear versions. I can open them with Python 3.6 and Numpy 1.14. But when I try to move to Python 3.8 with Numpy 1.18, I get a segfault on loading them.

I tried dumping them with protocol 4 from Python 3.6, it didn't help.

Saving:

with open('model.pkl', 'wb') as fid:
pickle.dump(model, fid, protocol=4)


model = pickle.load(open('model.pkl', "rb"))


Is there anything I can do in such situation?

What worked for me (very task-specific but maybe will help someone):

Old dependencies:

import joblib
joblib.dump(model.tree_.get_arrays()[0], "training_data.pkl")


import joblib
from sklearn.neighbors import KernelDensity

kde = KernelDensity(
algorithm="auto",
atol=0,
bandwidth=0.5,
kernel="gaussian",
leaf_size=40,
metric="euclidean",
metric_params=None,
rtol=0
).fit(data)

with open("new_model.pkl", "wb") as f:
pickle.dump(kde, f)


Community Discussions, Code Snippets contain sources that include Stack Exchange Network

## Vulnerabilities

No vulnerabilities reported

## Install pickle

PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.

## Support

For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
###### Reuse Solution Kits and Libraries Curated by Popular Use Cases

Save this library and start creating your kit

Explore Related Topics