Girls-In-AI
Girls-In-AI copied to clipboard
[ml-day-4]win10安装pandas successfully但是不能import
为避免无效问题和冗余问题,提问前请确认 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.
版本说明
- OS: [e.g. win] 说明操作系统 win10
- Python Version 说明语言及版本号 python 3.5
- Package Version 相关库/包的版本 pandas&numpy&matplotlib
- Browser [e.g. chrome, safari] 如果有必要,说明浏览器型号 chrome
Additional context 其他说明