The installation of pdpbox is successful, and the installation library reports an error and solves the problem.

How to install pdpbox library

Pdpbox is a python library for interpreting predictions from machine learning models. It can be installed as follows:

1. Installation dependencies

pip install numpy scipy scikit-learn

Second, install the pdpbox library.

pip install pdpbox

The error is as follows

    running build_ext
    building 'matplotlib.ft2font' extension
    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/

This error is that VC++ is not installed,

I install a small library, VC++ several G to his

You must also install https://visualstudio.microsoft.com/visual-cpp-build-tools/ to download and double-click to open the installation

After the installation is complete, choose to use VC++ desktop development, check the right side, the default is already checked

Click to install, you need a few G storage on the C drive

During the installation, a few minutes fast and an hour slow are related to the speed of the network.

4. After the installation is complete, restart and install pdpboxb

pip install pdpbox

5. Test

python

import pdpbox

This completes the pdpbox installation. You can now use pdpbox to explain your machine learning models through code or notebooks. Hope the above installation steps can clearly help you successfully install the pdpbox library. If you encounter any problems when installing or using pdpbox, please feel free to ask, and I will try my best to answer and troubleshoot for you.

pgp0520

May 25, 2023

Guess you like

Origin blog.csdn.net/weixin_55008315/article/details/130871618