## 电信用户测试ipython添加库文件:plotly、lightgbm、xgboost报错

it2024-04-09  47

1. ModuleNotFoundError: No module named 'plotly’

解决:pip install plotly

2. ModuleNotFoundError: No module named 'lightgbm’

-解决措施:pip install lightgbm 出现报错:ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: ‘C:\ProgramData\Anaconda3.1\Lib\site-packages\sklearn\init.py’ Consider using the --user option or check the permissions.

试试:pip install lightgbm --user ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: ‘c:\users\bigdata\appdata\roaming\python\python37\site-packages\~klearn\decomposition\_cdnmf_fast.cp37-win_amd64.pyd’ Check the permissions.

试试:pip install --user lightgbm 这个是参照下面这个链接的文章,具体原因目前在赶作业还没去探究,过后先吧

python的pip10.1版本出现了安装包时的错误Could not install packages due to anEnvironmentError: [WinError 5] 拒绝访问

3. ModuleNotFoundError: No module named 'xgboost 直接仿照上一个的方式:pip install --user xgboost,在install后面加–user 先将就这样,赶作业先

最新回复(0)