简体   繁体   English

将 pandas 导入为 pd ModuleNotFoundError:没有名为“pandas”的模块

[英]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 python3which <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.

相关问题 ModuleNotFoundError:没有名为“将熊猫作为pd \\ r导入”的模块 - ModuleNotFoundError: No module named 'mport pandas as pd\r' ModuleNotFoundError:没有名为 pandas 的模块 - ModuleNotFoundError: No module named pandas ModuleNotFoundError:没有名为“pandas”的模块 - ModuleNotFoundError: No module named 'pandas' Pandas 导入:ModuleNotFoundError:没有名为“pandas._libs.tslib”的模块 - Pandas Import : ModuleNotFoundError: No module named 'pandas._libs.tslib' 无法通过PyCharm:ModuleNotFoundError导入熊猫:没有名为“ pandas”的模块 - Cannot import pandas through PyCharm:ModuleNotFoundError: No module named 'pandas' ModuleNotFoundError:Pycharm 中没有名为“pandas”的模块 - ModuleNotFoundError: No module named 'pandas' in Pycharm PythonShellError:ModuleNotFoundError:没有名为“pandas”的模块 - PythonShellError: ModuleNotFoundError: No module named 'pandas' ModuleNotFoundError:没有名为“pandas”的模块 - Jupyter - ModuleNotFoundError: No module named 'pandas' - Jupyter 导入 pandas - ModuleNotFoundError:没有名为“numpy.testing.decorators”的模块 - import pandas - ModuleNotFoundError: No module named 'numpy.testing.decorators' ModuleNotFoundError:导入模块时没有名为“pandas”的模块 - ModuleNotFoundError: No module named 'pandas' when importing module
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM