简体   繁体   English

安装熊猫后出现“没有名为pandas的模块:”错误

[英]I am getting the “no module named pandas:” error after pandas being installed

I am trying to remove duplicates from a CSV file with the following script: 我正在尝试使用以下脚本从CSV文件中删除重复项:

import pandas as pd

toclean = pd.read_csv('LCG.csv')

deduped = toclean.drop_duplicates([col1,col2])
deduped.to_csv('LCGc.csv')

But I am getting the error "no module named pandas". 但是我收到错误消息“没有名为pandas的模块”。 However I have already installed pandas via miniconda. 但是我已经通过miniconda安装了熊猫。

康达清单显示熊猫已安装

似乎您有多个版本的Python,而当前使用的版本是python 2.7,因此要在该特定版本上安装熊猫,请尝试以下操作:

pip27 install pandas

暂无
暂无

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

相关问题 我安装了 pandas package,但仍然出现相同的错误:没有名为“pandas”的模块 - I installed the pandas package and I'm still getting the same error: No module named 'pandas' 为什么我收到此错误“ModuleNotFoundError:没有名为“binance.client”的模块; 安装binance后'binance'不是一个包'? - Why am I getting this error 'ModuleNotFoundError: No module named 'binance.client'; 'binance' is not a package' after binance installed? 当我尝试安装 pandas 时,我收到错误“没有名为 pandas 的模块”,但我确实安装了它 - When I try to install pandas I receive the error 'no module named pandas', but I do have it installed ModuleNotFoundError:没有名为“pandas”的模块 - 当我已经安装了熊猫时 - ModuleNotFoundError: No module named 'pandas' - when I have pandas already installed 没有名为pandas的模块,但是linux中已经安装了pandas - No module named pandas but pandas is already installed in linux 在 PyCharm 中使用 pip 成功安装后没有名为“pandas”的模块 - No module named 'pandas' after installed using pip successfully in PyCharm 我收到此错误(ModuleNotFoundError: No module named 'pandas'),即使我安装了它 - I get this error ( ModuleNotFoundError: No module named 'pandas' ) even though i installed it Pip已经安装:但我没有得到名为lxml的模块 - Pip is already installed: but I am getting no module named lxml 由Miniconda安装的ImportError``No Module Named Pandas'' - ImportError ''No Module Named Pandas'', installed by Miniconda 导入错误:没有名为 Pandas 的模块。 Pandas 安装了 pip - ImportError: No module named pandas. Pandas installed pip
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM