如何在 Windows 上的 winpython 中更新 scipy? [英] how can I update scipy in winpython on windows?

查看:38
本文介绍了如何在 Windows 上的 winpython 中更新 scipy?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 winpython,我想将 scipy 更新到 0.14 版本.我怎样才能做到这一点?我应该完全重新安装 winpython 吗?

I have winpython installed and I would like to update scipy to the version 0.14. How can I do that? Should I reinstall winpython completely?

如果我从 WinPython 命令提示符 运行 pip install --upgrade scipy 我收到这个错误:

If I run pip install --upgrade scipy from the WinPython Command Prompt I receive this error:

----------------------------------------
  Rolling back uninstall of scipy
Cleaning up...
Command C:\Users\donbeo\WinPython-64bit-3.3.5.0\python-3.3.5.amd64\python.exe -c
 "import setuptools, tokenize;__file__='c:\\users\\donbeo\\appdata\\local\\temp\
\pip_build_donbeo\\scipy\\setup.py';exec(compile(getattr(tokenize, 'open', open)
(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:
\users\donbeo\appdata\local\temp\pip-puzp_i-record\install-record.txt --single-v
ersion-externally-managed --compile failed with error code 1 in c:\users\donbeo\
appdata\local\temp\pip_build_donbeo\scipy
Storing debug log for failure in C:\Users\donbeo\WinPython-64bit-3.3.5.0\setting
s\pip\pip.log

C:\Users\donbeo\WinPython-64bit-3.3.5.0\python-3.3.5.amd64>pip install --upgradescipy

C:\Users\donbeo\WinPython-64bit-3.3.5.0\python-3.3.5.amd64>pip install --upgrade scipy

推荐答案

Christoph Gohlke 现在提供轮子,所以从 2015 年 1 月的 Winpython 开始,你也可以这样做:

Christoph Gohlke now provides wheels, so starting Winpython of January 2015, you may also be able to do that:

  • 将适用于您的 Python 版本的正确 .whl 文件(例如 cp33 用于 Python 3.3 和 win32 用于 32 位)下载到某个位置,例如D:\scipy\
  • 启动 WinPython 命令提示符
  • 类型

  • Download the correct .whl file for your Python version (e.g. cp33 for Python 3.3 and win32 for 32-Bit) to some location, e.g. D:\scipy\
  • Launch the WinPython Command Prompt
  • Type

pip install --no-index --upgrade D:\scipy\scipy‑0.15.0‑cp33‑none‑win32.whl

它应该为您提供这样的输出,例如 Python 3.3 32 位:

It should give you an output like this, for example for Python 3.3 32-Bit:

D:\result_tests\WinPython-32bit-3.3.5.5_build5\python-3.3.5>pip install --no-index --upgrade D:\here_is_scip\scipy-0.15.0-cp33-none-win32.whl
Ignoring indexes: https://pypi.python.org/simple
Processing d:\here_is_scip\scipy-0.15.0-cp33-none-win32.whl
Installing collected packages: scipy
  Found existing installation: scipy 0.14.1
    Uninstalling scipy-0.14.1:
      Successfully uninstalled scipy-0.14.1

Successfully installed scipy-0.15.0

D:\result_tests\WinPython-32bit-3.3.5.5_build5\python-3.3.5>

这篇关于如何在 Windows 上的 winpython 中更新 scipy?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆