Linux python3.6安装mayavi报错

news/2024/7/8 7:36:25 标签: linux, python, ui

需要将vtk版本降级,以及uninstall pyqt5(安装的vtk版本是9.3.1)

pip3 install vtk==8.1.0 或者9.0.1

报错

Building wheels for collected packages: mayavi
  Building wheel for mayavi (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/.conda/envs/oste/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-gldhexrx/mayavi_236df611d18344cdbbb6b678612704f4/setup.py'"'"'; __file__='"'"'/tmp/pip-install-gldhexrx/mayavi_236df611d18344cdbbb6b678612704f4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-rh55uxah
       cwd: /tmp/pip-install-gldhexrx/mayavi_236df611d18344cdbbb6b678612704f4/
  Complete output (111 lines):
  running bdist_wheel
  running build
  ----------------------------------------------------------------------
  Deleting possibly old TVTK classes
  Building TVTK classes... vtkAnimationCue: Ignoring method: Get/SetDirection
  default: 1, range: None
  vtkContextDevice2D: Ignoring method: Get/SetViewportRect
  default: [1361313440, 22150, 1361354768, 22150], range: None
  vtkContextDevice2D: Ignoring method: Get/SetViewportSize
  default: [1361296240, 22150], range: None
  vtkEventDataForDevice: Ignoring method: Get/SetAction
  default: -1, range: None
  vtkEventDataForDevice: Ignoring method: Get/SetDevice
  default: -1, range: None
  vtkFXAAOptions: Ignoring method: Get/SetDebugOptionValue
  default: 0, range: None
  vtkIncrementalForceLayout: Ignoring method: Get/SetGravityPoint
  default: [200.0, 200.0], range: None
  vtkOpenGLBufferObject: Ignoring method: Get/SetType
  default: 0, range: None
  vtkOpenGLFXAAFilter: Ignoring method: Get/SetDebugOptionValue
  default: 0, range: None
  vtkRenderWidget: Ignoring method: Get/SetPosition
  default: [0, 0], range: None
  vtkRenderWidget: Ignoring method: Get/SetSize
  default: [300, 300], range: None
  vtkShader: Ignoring method: Get/SetType
  default: 3, range: None
  vtkViewport: Ignoring method: Get/SetGradientMode
  default: 0, range: None
  vtkVolumeTexture: Ignoring method: Get/SetPartitions
  default: [1, 1, 1], range: None
  vtkChartMatrix: Ignoring method: Get/SetFillStrategy
  default: 0, range: None
  vtkChartMatrix: Ignoring method: Get/SetGutter
  default: [15.0, 15.0], range: None
  vtkChartMatrix: Ignoring method: Get/SetRect
  default: [0, 0, 100, 100], range: None
  vtkChartMatrix: Ignoring method: Get/SetSize
  default: [0, 0], range: None
  vtkContextArea: Ignoring method: Get/SetDrawAreaBounds
  default: [0.0, 0.0, 300.0, 300.0], range: None
  vtkContextArea: Ignoring method: Get/SetDrawAreaResizeBehavior
  default: 0, range: None
  vtkContextArea: Ignoring method: Get/SetFixedMargins
  default: [0, 0, 0, 0], range: None
  vtkContextArea: Ignoring method: Get/SetFixedRect
  default: [0, 0, 300, 300], range: None
  vtkContextArea: Ignoring method: Get/SetGeometry
  default: [0, 0, 300, 300], range: None
  vtkImplicitProjectOnPlaneDistance: Ignoring method: Get/SetNorm
  default: 2, range: None
  
  
  Failed on OpenGLCellGridRenderRequest
  (#5 of 11 nodes, #227 of 464 subnodes):

更新vtk版本后

 Building wheels for collected packages: mayavi
  Building wheel for mayavi (setup.py) ... done
  Created wheel for mayavi: filename=mayavi-4.8.0-cp36-cp36m-linux_x86_64.whl size=13479349 sha256=61d30d1a712f8ff2f905fc2d5a266fc48a37d78c4e3b62bcb493ff7334467b61
  Stored in directory: /tmp/pip-ephem-wheel-cache-de41exy_/wheels/79/03/42/eaf3037318074051b08b084e16315d0e2739f2c0169ecea50e
Successfully built mayavi
WARNING: Error parsing requirements for future: [Errno 2] No such file or directory: '/home/yueming/.conda/envs/oste/lib/python3.6/site-packages/future-0.18.2.dist-info/METADATA'
Installing collected packages: mayavi
Successfully installed mayavi-4.8.0


http://www.niftyadmin.cn/n/5536831.html

相关文章

【笔记】字符串相似度代码分享

目录 一、算法介绍1、算法1)基于编辑距离2)基于标记3)基于序列4)基于压缩5)基于发音6)简单算法 2、安装 二、代码demo1、Hamming 距离2、Levenshtein 距离3、Damerau-Levenshtein距离4、Jaro 相似度5、Jaro…

图形的搭建

例一: 输入描述: 多组输入,一个整数(2~20),表示输出的行数,也表示组成“X”的反斜线和正斜线的长度。 输出描述: 针对每行输入,输出用“*”组成的X形图案。 示例一&…

1_插入排序_循环不变式

01_插入排序 #include<stdio.h>void insert_sort(int arr[], int n); void printArray(int arr[], int size);int main() {int arr[] {1, 2, 3, 22, 5, 9};int n sizeof(arr) / sizeof(arr[0]);printf("打印原始数组:\n");prinfArray(arr, n);insert_sort(a…

security密码明文

引言&#xff1a;在引入未给定初始化mysql数据springboot项目时&#xff0c;由于项目通过security对密码进行了加密&#xff0c;无法进行登录操作&#xff0c;提供的一种解决方法 1、注释掉注入的加密类 // Autowired // private BCryptPasswordEncoder bCryptPassword…

《梦醒蝶飞:释放Excel函数与公式的力量》8.3 COUNTBLANK函数

8.3 COUNTBLANK函数 在数据处理和分析中&#xff0c;我们经常需要识别和统计数据集中的空白单元格。COUNTBLANK函数是Excel中用于统计某个范围内空白单元格数量的强大工具。 8.3.1 函数简介 COUNTBLANK函数用于统计指定范围内的空白单元格数量。这在数据清洗、数据完整性检查…

面试框架一些小结

springcloud的⼯作原理 springcloud由以下⼏个核⼼组件构成&#xff1a; Eureka&#xff1a;各个服务启动时&#xff0c;Eureka Client都会将服务注册到Eureka Server&#xff0c;并且Eureka Client还可以反过来从Eureka Server拉取注册表&#xff0c; 从⽽知道其他服务在哪⾥ …

【鸿蒙学习笔记】鸿蒙ArkTS学习笔记

应用开发导读&#xff1a;https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/application-dev-guide-V5 目录标题 【鸿蒙培训】第&#xff11;天【鸿蒙培训】第&#xff12;天【鸿蒙培训】第&#xff13;天【鸿蒙培训】第&#xff14;天【鸿蒙培训】第&#…

Kafka-服务端-网络层-源码流程

整体架构如下所示&#xff1a; responseQueue不在RequestChannel中&#xff0c;在Processor中&#xff0c;每个Processor内部有一个responseQueue 客户端发送的请求被Acceptor转发给Processor处理处理器将请求放到RequestChannel的requestQueue中KafkaRequestHandler取出reque…