I installed the pdpbox package through pip.
pip install pdpbox Requirement already satisfied: pdpbox in c:\users\Me\appdata\roaming\python\python37\site-packages (0.2.1)
And within Spyder, I did !pip list
. The package showed up.
PDPbox 0.2.1
Yet when I tried to do from pdpbox import pdp, get_dataset, info_plots
or from PDPbox import pdp, get_dataset, info_plots
, i received ModuleNotFoundError: No module named 'pdpbox'
. I restarted the Spyder IDE and the error still occurred
What have I done wrong here ?
UPDATE:
I tried (1) restarting Spyder, (2) pip3 install pdpbox
, still no luck.
Originally, when I first tried to install it within the Spyder IDE !pip install pdpbox
which resulted in an error
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'c:\\users\\Me\\appdata\\local\\programs\\python\\python37\\Lib\\site-packages\\matplotlib\\ft2font.cp37-win_amd64.pyd' Consider using the `--user` option or check the permissions.
So the package was installed via pip install pdpbox --user
. I believe the --user
is causing all of these trouble.
没有评论:
发表评论