【问题标题】:After writing 'Import numpy', I am getting out of python shell to windows shell. Is numpy installed properly?写完“Import numpy”后,我将退出 python shell 到 windows shell。 numpy 是否安装正确?
【发布时间】: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


【解决方案1】:

我将 python 从版本 3.7.0 更新到 3.7.3,这是撰写此答案时可用的最新版本。

现在,numpy 导入成功了。

【讨论】:

    猜你喜欢
    • 2014-05-08
    • 1970-01-01
    • 2015-11-05
    • 1970-01-01
    • 2014-06-15
    • 1970-01-01
    • 1970-01-01
    • 2017-05-24
    • 2016-11-04
    相关资源
    最近更新 更多