简体   繁体   English

导入 pandas 无法解决

[英]import pandas could not be resolved

I am new to python, I have followed a tutorial and installed latest version of anaconda created an environement by installing python 3.6我是 python 的新手,我按照教程安装了最新版本的 anaconda 通过安装 python 3.6 创建了一个环境

used following commands使用以下命令

    conda create -n env1 python=3.6
    conda activate env1
    conda install pandas 

but when I am running the code I am getting following error and I am not able to identify what is going wrong with the code.但是当我运行代码时出现以下错误,我无法确定代码出了什么问题。

在此处输入图像描述

VS code: VS代码:

在此处输入图像描述

Edit #1:编辑#1:

Just to test with other version, I have installed python 3.7 and run the following code只是为了测试其他版本,我安装了 python 3.7 并运行以下代码

在此处输入图像描述

conda create -n env1 python=3.6
conda activate env1
conda install pandas 

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

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