如何在windows上用winpython更新scipy?
我已经安装了winpython,我想将scipy更新到0.14版本。 我该怎么做?我应该完全重新安装winpython吗 编辑: 如果从如何在windows上用winpython更新scipy?,python,windows,scipy,Python,Windows,Scipy,我已经安装了winpython,我想将scipy更新到0.14版本。 我该怎么做?我应该完全重新安装winpython吗 编辑: 如果从WinPython命令提示符运行pip安装--upgrade scipy,我将收到以下错误: ---------------------------------------- Rolling back uninstall of scipy Cleaning up... Command C:\Users\donbeo\WinPython-64bit-3.3.5
WinPython命令提示符运行pip安装--upgrade scipy
,我将收到以下错误:
----------------------------------------
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安装--升级
scipywindows最简单的方法是使用预构建的二进制文件,这也是一种推荐的安装方法,请参见:Christoph Gohlke,因此从2015年1月开始使用Winpython,您也可以这样做:
- 将适用于Python版本的正确
.whl
文件(例如适用于Python 3.3的cp33
和适用于32位的win32
下载到某些位置,例如D:\scipy\
- 启动WinPython命令提示符
- 类型
pip install --no-index --upgrade D:\scipy\scipy‑0.15.0‑cp33‑none‑win32.whl
它应该为您提供如下输出,例如Python 3.3 32位:
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>
我认为错误是因为您没有以管理员权限运行提示符。找到类似DOS的“命令提示符”程序,然后右键单击它并选择“以管理员身份运行” 你能不能不用pip?@PadraicCunningham我已经更新了这个问题。同样的命令也适用于ubuntu。我不知道我在windows上是否做错了什么。windows安装任何东西都会让我感到痛苦,我添加了一个带有预构建二进制文件链接的答案。我尝试过,但我在本地文件夹中安装了python(我刚刚在一个文件夹中提取了winpython)因此无法安装网站上的scipy,因为python不在变量路径中。有更简单的解决方法吗?您可以添加一个到winpython的路径来包含您的系统python软件包,或者使用软件包管理器来安装吗?我希望避免这种情况。在这种情况下,我应该给IT部门的人打电话。