Jupyter Notebook报错 ModuleNotFoundError: No module named ‘pandas’

ModuleNotFoundError: No module named ‘pandas’

pip install pandas

conda install pandas(玄学警告)

新建python3导入pandas报题目的错,去Anaconda Prompt查看pandas,我用的是conda去查看,显示有pandas,怀疑是版本的问题,准备更新一下版本,结果重启Jupyter以后还是报错;再回到Anaconda Prompt用pip来直接安装pandas,重启Jupyter以后能导入pandas了,但是报了警告(我这暴脾气),看警告直接解决

py:138: UserWarning: Pandas requires version '2.7.0' or newer of 'numexpr' (version '2.6.9' currently installed).
  warnings.warn(msg, UserWarning)

“numexpr”的版本需要更新,至少为2.7.0

pip install --user numexpr==2.7.0

 解决问题

 

这是想忽略已有版本直接更新(和上面的警告已经没有关系了),遇见以下报错:

pip install pandas --upgrade --ignore-installed pandas

ERROR: astroid 2.2.5 requires typed-ast>=1.3.0; implementation_name == "cpython", which is not installed.

连着下面还有一段报错,并且给了解决方案

ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: 
......
Consider using the `--user` option or check the permissions.

可知加上--user即可:

pip install --user typed-ast==1.3.0

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值