简体   繁体   English

已安装 PyCharm 和 Anaconda,但无法启用 Pandas 和 NumPy

[英]Installed PyCharm and Anaconda, but Can't Enable Pandas and NumPy

I type in import pandas as pd and it returns ModuleNotFoundError.我输入 import pandas 作为 pd 并返回 ModuleNotFoundError。 I opened PyCharm in a Conda environment, so I am very confused.我是在Conda环境下打开PyCharm的,所以很迷茫。

If you installed anaconda, numpy and pandas are installed already. 如果您安装了anaconda,则已经安装了numpy和pandas。 You need to select your interpreter. 您需要选择您的口译员。 See steps 5 and 6 here if you dont know how to do it. 如果您不知道该怎么做,请参见此处的步骤5和6。

Press on it with the mouse Did you already try to click on the module and press Alt + Enter. 用鼠标按在它上面是否已经尝试单击该模块,然后按Alt + Enter。 There you can select "Install package" 在那里您可以选择“安装软件包”

Pycharm->文件->设置->项目解释器->点击设置图标->添加->选择系统解释器->点击三个点->找到Anaconda3->工具->python.exe->应用/确定

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM