[英]import pandas as pd ModuleNotFoundError: No module named 'pandas'
I receive this error in Python 3.9.1我在 Python 3.9.1 中收到此错误
import pandas as pd ModuleNotFoundError: No module named 'pandas'
But when I install pandas in the terminal it.但是当我在终端中安装 pandas 时。
Please check the interpreter your using while trying to import pandas
and receiving this error.请在尝试
import pandas
并收到此错误时检查您使用的解释器。 This is probably a multiple python versions problem.这可能是多个 python 版本问题。 Type in terminal
which python3
or which <what ever python you use>
and then (it differs by the ide you use) check if both pythons point to the same path.输入终端
which python3
或which <what ever python you use>
然后(它与您使用的 ide 不同)检查两个 python 是否指向相同的路径。
I have been trying to solve this issue for like 2 months now and thank God I have finally solved it, what I did was to install pandas directly into jupyter notebook in anaconda navigator like this and it worked: !pip install pandas我已经尝试解决这个问题 2 个月了,感谢上帝,我终于解决了,我所做的是将 pandas 直接安装到 anaconda 导航器中的 jupyter 笔记本中,就像这样,它起作用了:!pip install Z3A405AZ4F8889325
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.