安装pandas后,我可以在cmd中导入,如下所示:
C:\Users\me\Desktop\Django_Project>python
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
>>>但是当我在IPython 6.5.0控制台的Spyder中导入熊猫时,我得到了以下错误:
Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.
IPython 6.5.0 -- An enhanced Interactive Python.
c:\program files (x86)\python37-32\lib\site-packages\ipykernel\parentpoller.py:116: UserWarning: Parent poll failed. If the frontend dies,
the kernel may be left running. Please let us know
about your system (bitness, Python, etc.) at
ipython-dev@scipy.org
ipython-dev@scipy.org""")
In [1] : import pandas
Traceback (most recent call last):
File "<ipython-input-1-38d4b0363d82>", line 1, in <module>
import pandas
ModuleNotFoundError: No module named 'pandas'
In [2] :注意:我在"C:\Users\me\AppData\Local\Programs\Python\Python37\“path中安装了"C:\Users\me\AppData\Local\Programs\Python\Python37;”,环境变量设置为python
我用PIP安装了pandas
请建议解决此问题的解决方案。我已尝试重新安装pandas包近6-7次。
发布于 2019-02-25 14:06:07
我想你应该在windows搜索栏中搜索anaconda命令提示符来打开它。现在在那里输入"conda install -c anaconda pandas“,然后再次尝试运行该程序。
https://stackoverflow.com/questions/52610932
复制相似问题