简体   繁体   English

无法从 sourcePylancereportMissingModuleSource 解析导入“pandas”

[英]Import “pandas” could not be resolved from sourcePylancereportMissingModuleSource

I've already tried many tutorials on installing pandas.我已经尝试了很多关于安装熊猫的教程。 It actually worked the first time I used it, but the second time in a separate file, it doesn't work.我第一次使用它时它确实有效,但第二次在单独的文件中它不起作用。

I've also already installed pandas through pip installer, and have uninstalled and reinstalled python.我也已经通过pip安装程序安装了pandas,并且已经卸载并重新安装了python。

What operating system are you on and which Python version are you using?您使用的是什么操作系统以及您使用的是哪个 Python 版本? After "many tutorials" your system is likely messed up and you need to completely remove Python first.“许多教程”之后,您的系统可能会搞砸,您需要先完全删除 Python。 Then for installing pandas stick to the official documentation: https://pandas.pydata.org/pandas-docs/stable/getting_started/install.html然后安装熊猫坚持官方文档: https : //pandas.pydata.org/pandas-docs/stable/getting_started/install.html

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

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