python - Command errored out with exit status 1: Building wheel for pysph (setup.py) ... error
问题描述
I have tried to install PySPH to my PC Windows 10. I have done all of what I have to following the Installation and getting started at pysph.com including some of tips for Windows. When I executed 'pip install pysph', it looked almost ok but always errored out 'Building wheel for pysph (setup.py) ... error'. I am not so much knowledge about setting up the software development environment at all.
Could someone kindly help me to advise me on/resolve this problem, please?
(base) C:\Users\terha>pip install pysph Collecting pysph Using cached PySPH-1.0a6.tar.gz (2.7 MB)
Building wheels for collected packages: pysph
Building wheel for pysph (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\terha\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\terha\AppData\Local\Temp\pip-install-0mahwwc_\pysph\setup.py'"'"'; file='"'"'C:\Users\terha\AppData\Local\Temp\pip-install-0mahwwc_\pysph\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\terha\AppData\Local\Temp\pip-wheel-5gc9xj6n'
cwd: C:\Users\terha\AppData\Local\Temp\pip-install-0mahwwc_\pysph
Complete output (493 lines):
C:\Users\terha\anaconda3\lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\terha\AppData\Local\Temp\tmp7g08ussh\check_omp.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
check_omp.c
check_omp.obj : warning LNK4197: export 'PyInit_check_omp' specified multiple times; using first specification
Creating library C:\Users\terha\AppData\Local\Temp\tmp7g08ussh\temp.win-amd64-3.7\Release\Users\terha\AppData\Local\Temp\tmp7g08ussh\check_omp.cp37-win_amd64.lib and object C:\Users\terha\AppData\Local\Temp\tmp7g08ussh\temp.win-amd64-3.7\Release\Users\terha\AppData\Local\Temp\tmp7g08ussh\check_omp.cp37-win_amd64.exp
Generating code
Finished generating code
解决方案
您不能只使用 pip 安装它,您需要先按照文档中的步骤进行操作。
推荐阅读
- sql - SQL,Postgres:如何从非正态分布中获得百分位数?
- ruby-on-rails - NameError(未初始化的常量 SnowplowTracker::SelfDescribingJson):在 ruby 中制作扫雪机跟踪器时
- vba - “编译错误:参数不是可选的”尝试在 VBA 中检索 Shape.ScaleHeight 值时出错
- reactjs - 如何防止用户在注销后返回主屏幕
- python - 如何从一个代码中获取 => 最近的星期五、上周的星期五、上周的第二个星期五、最后一周的第三个星期五、最后一周的第 n 个星期五的日期?
- python - 列表项到整数转换触发python3中的语法错误
- tableau-api - 减法的 LoD
- javascript - 如何通过 id (MEAN Stack) 从数据库中获取一个数据?
- mysql - MySQL 给我一个错误代码 1072 什么不存在;不存在我在 Oracle LiveSQL 中工作它工作
- c# - automapper 将每个地图源和目的地添加到字典