- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在我的项目中,我使用的是 Raspberry PI 4,上面安装了 Ubuntu 21.04 (aarch64)。
我正在使用 :
- Pycharm作为我的 Python IDE
- Miniforge3有一个 conda 环境
我想安装库 getfem++和 pyvista运行这个例子:
https://getfem-examples.readthedocs.io/en/latest/demo_unit_disk.html
1) GETFEM++
我已经使用命令 sudo aptitude install python3-getfem++
安装了 getfem++ --> 它有效
2) 派维斯塔
-与 pip install pyvista
: 错误,似乎与我未能安装的 vtk 有关联。
pip install pyvista
Collecting pyvista
Using cached pyvista-0.30.1-py3-none-any.whl (1.2 MB)
Collecting appdirs
Using cached appdirs-1.4.4-py2.py3-none-any.whl (9.6 kB)
Collecting scooby>=0.5.1
Using cached scooby-0.5.7-py3-none-any.whl (13 kB)
Collecting meshio<5.0,>=4.0.3
Using cached meshio-4.4.3-py3-none-any.whl (153 kB)
Requirement already satisfied: imageio in ./.local/lib/python3.9/site-packages (from pyvista) (2.9.0)
Requirement already satisfied: pillow in /usr/lib/python3/dist-packages (from pyvista) (8.1.2)
Collecting pyvista
Using cached pyvista-0.30.0-py3-none-any.whl (1.2 MB)
Using cached pyvista-0.29.1-py3-none-any.whl (1.2 MB)
Using cached pyvista-0.29.0-py3-none-any.whl (1.2 MB)
Using cached pyvista-0.28.1-py3-none-any.whl (1.2 MB)
Using cached pyvista-0.28.0-py3-none-any.whl (1.2 MB)
Using cached pyvista-0.27.4-py3-none-any.whl (1.2 MB)
Using cached pyvista-0.27.3-py3-none-any.whl (1.2 MB)
Using cached pyvista-0.27.2-py3-none-any.whl (1.2 MB)
Using cached pyvista-0.27.1-py3-none-any.whl (1.2 MB)
Using cached pyvista-0.27.0-py3-none-any.whl (1.2 MB)
Using cached pyvista-0.26.1-py3-none-any.whl (1.2 MB)
Using cached pyvista-0.26.0-py3-none-any.whl (1.2 MB)
Using cached pyvista-0.25.3-py3-none-any.whl (1.2 MB)
Using cached pyvista-0.25.2-py3-none-any.whl (1.2 MB)
Using cached pyvista-0.25.1.tar.gz (1.2 MB)
Requirement already satisfied: numpy in ./.local/lib/python3.9/site-packages (from pyvista) (1.20.3)
Using cached pyvista-0.24.3.tar.gz (1.2 MB)
Using cached pyvista-0.24.2.tar.gz (1.2 MB)
Using cached pyvista-0.24.1.tar.gz (1.2 MB)
Using cached pyvista-0.24.0.tar.gz (1.2 MB)
Using cached pyvista-0.23.1.tar.gz (1.2 MB)
Using cached pyvista-0.23.0.tar.gz (1.2 MB)
Using cached pyvista-0.22.4.tar.gz (1.2 MB)
Using cached pyvista-0.22.2.tar.gz (1.2 MB)
Using cached pyvista-0.22.1.tar.gz (1.2 MB)
Using cached pyvista-0.22.0.tar.gz (1.2 MB)
Using cached pyvista-0.21.4.tar.gz (1.1 MB)
Using cached pyvista-0.21.3.tar.gz (1.1 MB)
Using cached pyvista-0.21.2.tar.gz (1.1 MB)
Using cached pyvista-0.21.1.tar.gz (1.1 MB)
Using cached pyvista-0.21.0.tar.gz (1.1 MB)
Using cached pyvista-0.20.4.tar.gz (1.1 MB)
Using cached pyvista-0.20.3.tar.gz (1.1 MB)
Using cached pyvista-0.20.2.tar.gz (1.1 MB)
Using cached pyvista-0.20.1.tar.gz (1.1 MB)
Using cached pyvista-0.20.0.tar.gz (1.1 MB)
ERROR: Cannot install pyvista==0.20.0, pyvista==0.20.1, pyvista==0.20.2, pyvista==0.20.3, pyvista==0.20.4, pyvista==0.21.0, pyvista==0.21.1, pyvista==0.21.2, pyvista==0.21.3, pyvista==0.21.4, pyvista==0.22.0, pyvista==0.22.1, pyvista==0.22.2, pyvista==0.22.4, pyvista==0.23.0, pyvista==0.23.1, pyvista==0.24.0, pyvista==0.24.1, pyvista==0.24.2, pyvista==0.24.3, pyvista==0.25.1, pyvista==0.25.2, pyvista==0.25.3, pyvista==0.26.0, pyvista==0.26.1, pyvista==0.27.0, pyvista==0.27.1, pyvista==0.27.2, pyvista==0.27.3, pyvista==0.27.4, pyvista==0.28.0, pyvista==0.28.1, pyvista==0.29.0, pyvista==0.29.1, pyvista==0.30.0 and pyvista==0.30.1 because these package versions have conflicting dependencies.
The conflict is caused by:
pyvista 0.30.1 depends on vtk
pyvista 0.30.0 depends on vtk
pyvista 0.29.1 depends on vtk
pyvista 0.29.0 depends on vtk
pyvista 0.28.1 depends on vtk
pyvista 0.28.0 depends on vtk
pyvista 0.27.4 depends on vtk
pyvista 0.27.3 depends on vtk
pyvista 0.27.2 depends on vtk
pyvista 0.27.1 depends on vtk
pyvista 0.27.0 depends on vtk
pyvista 0.26.1 depends on vtk
pyvista 0.26.0 depends on vtk
pyvista 0.25.3 depends on vtk
pyvista 0.25.2 depends on vtk
pyvista 0.25.1 depends on vtk
pyvista 0.24.3 depends on vtk
pyvista 0.24.2 depends on vtk
pyvista 0.24.1 depends on vtk
pyvista 0.24.0 depends on vtk
pyvista 0.23.1 depends on vtk
pyvista 0.23.0 depends on vtk
pyvista 0.22.4 depends on vtk
pyvista 0.22.2 depends on vtk
pyvista 0.22.1 depends on vtk
pyvista 0.22.0 depends on vtk
pyvista 0.21.4 depends on vtk
pyvista 0.21.3 depends on vtk
pyvista 0.21.2 depends on vtk
pyvista 0.21.1 depends on vtk
pyvista 0.21.0 depends on vtk
pyvista 0.20.4 depends on vtk
pyvista 0.20.3 depends on vtk
pyvista 0.20.2 depends on vtk
pyvista 0.20.1 depends on vtk
pyvista 0.20.0 depends on vtk
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
-带
conda 环境(来自 miniforge3):可以毫无困难地安装 pyvista。
/home/alban/miniforge3/envs/Conda_PY39/lib/python3.9/site-packages
和 :
/usr/lib/python3.9/dist-packages
/usr/lib/python3/dist-packages
/lib/python3/dist-packages
/lib/python3.9/dist-packages
有了这个,我似乎检测到了“getfem”和“pyvista”,但我收到了这个错误:
/home/alban/miniforge3/envs/Conda_PY39/bin/python /home/alban/PycharmProjects/pythonProject/main.py
Traceback (most recent call last):
File "/home/alban/PycharmProjects/pythonProject/main.py", line 1, in <module>
import getfem as gf
File "/usr/lib/python3/dist-packages/getfem/__init__.py", line 16, in <module>
from .getfem import *
File "/usr/lib/python3/dist-packages/getfem/getfem.py", line 44, in <module>
from ._getfem import *
ImportError: /home/alban/miniforge3/envs/Conda_PY39/bin/../lib/libgfortran.so.5: version `GFORTRAN_10' not found (required by /lib/aarch64-linux-gnu/libdmumps_seq-5.3.so)
Process finished with exit code 1
我真的不知道还有什么可以尝试的建议?
最佳答案
我成功地在 Rpi4 上安装了 getfem++ 和 pyvista(没有 conda)。
我在本文末尾发布了我的方法 github discussion
希望能帮到你!
我采取的步骤的简要列表(在链接的讨论中有详细信息):
python3-getfem++
与 apt --no-dependencies
安装 PyVista切换到手动安装的依赖项 setup.py
中查找依赖项)xvfb
)以获得用于绘图的虚拟帧缓冲区。 关于python - 将 getfem++ 导入 conda 环境? - 树莓派 4 - Ubuntu 21.04,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67610887/
尝试使用命令 conda update conda 从终端更新 conda 时出现错误.它在说: Solving environment: failed UnsatisfiableError: The
在 conda 中,当我尝试安装软件包时,出现此错误: CorruptedEnvironmentError: The target environment has been corrupted. C
我想在一个特定的 conda 环境中安装带有 conda 的程序,并能够使用来自所有 conda 环境的相关命令。 我的目标是让学生在任何平台(尤其是 Windows)上安装 Mercurial(加上
我遇到了一个麻烦的问题。 我的 pip 和 /home/xxx/local/anacoda2/bin 的 python 都可以,但是 conda 仍然不起作用。当我在我的 ubuntu16.04 终端
我已经在普通机器上设置了 Conda 环境。它工作正常。我想在一台无法访问互联网的机器上克隆这个环境(我只能通过 SSH 进入)。 我最初的想法是压缩 Conda 留下的包缓存并将其移动到气隙机器上的
我想要两个环境:生产环境是测试环境的严格子集。我如何使用 Conda(或 micromamba)实现这一目标? 测试需要一些不需要捆绑在生产 docker 镜像中的额外实用程序。主要思想是确保生产安装
每次打开终端时都会显示以下代码行。 Traceback (most recent call last): File "", line 3, in ImportError: No module n
我尝试使用以下命令更新 conda: ~$ conda update conda 它输出以下消息: WARNING conda.base.context:use_only_tar_bz2(632):
如何仅列出 conda 中针对特定环境显式安装的软件包?有没有办法做到这一点? 最佳答案 @Sjlver 的评论链接到的页面( https://github.com/conda/conda/issue
conda 文档指定: conda clean [-h] [-y] [--dry-run] [--json] [--debug] [--verbose] [-q] [-a] [-i] [-l] [-t
当我克隆一个 Conda 环境时 conda create --name thenewenv --clone theorigenv 我注意到 theorigenv 的修订历史丢失了 conda act
我在 Conda 环境中安装了一堆软件包,包括带有 NVIDIA 工具包的 docker 容器和一些其他非 python 库。安装占用了大约 10 GB 的磁盘空间。但是当我删除 Conda 环境时,
documentation指出克隆以这种方式工作:conda create --name myclone --clone myenv但是,这将始终默认创建环境 myclone进入我几乎没有磁盘存储空间
这个问题在这里已经有了答案: Why are packages installed rather than just linked to a specific environment? (1 个回答)
How to list package versions available with conda有有用的答案,其中之一在 https://stackoverflow.com/a/47795843/2
后 conda update --all 我无法再启动 spyder。如果我在终端中运行 spyder,我会收到以下错误: /anaconda3/bin/pythonw: line 3: /anaco
对于给定的 conda包,我如何列出依赖它的包? 我最近在一个已经有 MPI (openmpi) 版本的大学集群上安装了 anaconda。 mpich2包和mpi4py与 anaconda 一起安装
创建虚拟环境时可以将路径/Users/nolan/miniconda/envs/更改为另一个路径吗?我希望它特定于我的项目目录。 (正如我们可以使用 virtualenv 所做的那样) $conda
激活 conda 环境时,conda 会记住之前激活的环境。例如,如果没有激活任何环境,则调用 conda activate foo 然后调用 conda deactivate 将导致没有任何环境处于
我使用 PyCharm 创建了一个带有 conda 解释器的项目。 Pycharm自动为其创建conda环境。不久之后,我意识到我想要该项目的另一个地点。因此我删除了项目文件夹。然后我意识到我要删除
我是一名优秀的程序员,十分优秀!