girls-in-ai / Girls-In-AI

免费学代码系列:小白python入门、数据分析data analyst、机器学习machine learning、深度学习deep learning、kaggle实战
http://girls-in-ai.github.io/Girls-In-AI/
3.04k stars 479 forks source link

[ml-day-4]win10安装pandas successfully但是不能import #30

Open HaoyueZZZ opened 5 years ago

HaoyueZZZ commented 5 years ago

为避免无效问题和冗余问题,提问前请确认 Google过在StackOverflow上看到类似问题,但是按照回答install了一个package但是也没能解决问题。 在uninstall之后重新install也没有解决问题。

Describe the bug 描述你遇到的问题 按照教程步骤在cmd中pip install pandas,显示successfully installed,但是通过python import却报错。 但是在prompt里import就能成功。

To Reproduce 如何重现问题 Steps to reproduce the behavior: 把你遇到的问题的发生步骤替换掉下面的内容: 在已显示Successfully installed pandas-0.23.4后,通过python import pandas显示如下:

import pandas Traceback (most recent call last): File "", line 1, in ImportError: No module named 'pandas' 但在anaconda prompt里尝试import pandas就没有问题,anaconda中如下: (base) C:\Users\xxx>python Python 3.7.0 (default, Jun 28 2018, 08:04:48) [MSC v.1912 64 bit (AMD64)] :: Anaconda, Inc. on win32 Type "help", "copyright", "credits" or "license" for more information. import pandas

Expected behavior 期待修复的效果 就想弄明白到底怎么回事是没有完成install吗?我再次尝试install会显示各种requirements satisfied。我想再cmd里像可以在prompt里一样import。Please help。谢谢大家。

Screenshots 如有必要,可以截图说明 If applicable, add screenshots to help explain your problem.

版本说明

Additional context 其他说明