【发布时间】:2019-04-27 19:48:48
【问题描述】:
写完“Import numpy”后,我从 python shell 转为 windows shell。 numpy 是否安装正确? 我正在使用 Windows 10 64 位和 python 3.7。我将 pip 更新为最新版本 19.1,然后安装了 numpy。
我卸载并重新安装了numpy,但结果与问题摘要中提到的相同。
C:\Users\tejas>pip install numpy 收集 numpy 使用缓存的https://files.pythonhosted.org/packages/4e/9d/c129d78e6b942303b762ccfdf1f8339de80c5e6021b14ef0c99ec5bdc6aa/numpy-1.16.3-cp37-cp37m-win_amd64.whl 安装收集的包:numpy 成功安装numpy-1.16.3
C:\Users\tejas>python Python 3.7.0a2(v3.7.0a2:f7ac4fe,2017 年 10 月 17 日,17:06:29)[MSC v.1900 64 位 (AMD64)] 在 win32 上 输入“help”、“copyright”、“credits”或“license”了解更多信息。
导入 numpy
C:\Users\tejas>
预期的结果是,在键入“import numpy”后,控件不应该从 python shell 转移到 windows shell。它应该留在 python shell 本身,因为我没有退出 python shell。
【问题讨论】:
-
您是否收到任何错误消息?您是否尝试过查找日志文件?
-
我没有收到任何错误消息。它会自动从 python 解释器转到 windows shell。
标签: numpy windows-10 command-prompt