首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >安装Scipy时出现问题

安装Scipy时出现问题
EN

Stack Overflow用户
提问于 2020-01-08 21:05:07
回答 2查看 1.2K关注 0票数 0

我使用命令sudo apt-get install python-numpy python-scipy安装了Scipy,看起来这两个命令都安装了最新版本。但是,当我尝试使用pip install wfdb安装一个名为wfdb的python包时,在安装Building wheel for scipy (PEP 517)时出现错误。

代码语言:javascript
运行
复制
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

我能在这方面得到一些帮助吗?

EN

Stack Overflow用户

发布于 2020-01-09 06:36:14

清理安装(我不知道你使用的是哪种系统),比如去掉$PATH变量,重新安装即可。

如果您使用的是Anaconda:

conda install -c anaconda scipy

应该这么做

也是老糊涂的

pip安装scipy

也能把它做好。我可以问一下你为什么以这种方式安装吗(我也不知道你在哪个系统上)

票数 0
EN
查看全部 2 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59646499

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档