我使用命令sudo apt-get install python-numpy python-scipy
安装了Scipy
,看起来这两个命令都安装了最新版本。但是,当我尝试使用pip install wfdb
安装一个名为wfdb
的python包时,在安装Building wheel for scipy (PEP 517)
时出现错误。
ERROR: Failed building wheel for scipy
Running setup.py clean for scipy
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] =
'"'"'/tmp/pip-install-
fhfmfpqi/scipy/setup.py'"'"'; __file__='"'"'/tmp/pip-install-
fhfmfpqi/scipy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)
(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code,
__file__,
'"'"'exec'"'"'))' clean --all
cwd: /tmp/pip-install-fhfmfpqi/scipy
Complete output (9 lines):
`setup.py clean` is not supported, use one of the following instead:
- `git clean -xdf` (cleans all files)
- `git clean -Xdf` (cleans all versioned files, doesn't touch
files that aren't checked into the git repo)
Add `--force` to your command to use it anyway if you must (unsupported).
----------------------------------------
ERROR: Failed cleaning build dir for scipy
Failed to build scipy
ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly`
我使用pip install --upgrade pip
升级了pip
。
使用的python版本: 3.7
我能在这方面得到一些帮助吗?
发布于 2020-01-09 06:36:14
清理安装(我不知道你使用的是哪种系统),比如去掉$PATH变量,重新安装即可。
如果您使用的是Anaconda:
conda install -c anaconda scipy
应该这么做
也是老糊涂的
pip安装scipy
也能把它做好。我可以问一下你为什么以这种方式安装吗(我也不知道你在哪个系统上)
https://stackoverflow.com/questions/59646499
复制相似问题