Skip to content

Commit

Permalink
pyvista安装
Browse files Browse the repository at this point in the history
  • Loading branch information
OsbertWang committed Mar 28, 2023
1 parent b137572 commit 6c60c63
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions install-fenics-guide-zh-cn.tex
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ \section{添加 PPA}
\end{lstlisting}
即完成添加 PPA 的操作.

\section{安装 FEniCS}
\section{安装 FEniCSx 及其他组件}

\textsf{bash} 中执行
\begin{lstlisting}[language = bash]
Expand All @@ -381,7 +381,32 @@ \section{安装 FEniCS}
\begin{lstlisting}[language = bash]
sudo apt install fenicsx
\end{lstlisting}
即可开始安装.
即可开始安装 FEniCSx.

此外,
在很多 FEniCSx 例子中都需要 \texttt{pyvista},
它需要使用 \textsf{pip3} 来安装.
但受网络因素影响,
安装速度很慢,
所以需要先更换到国内的源,
例如%
\href{https://mirrors.tuna.tsinghua.edu.cn/help/pypi/}{清华源}.

\textsf{bash} 中执行
\begin{lstlisting}
python3 -m pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --upgrade pip
\end{lstlisting}
升级 \textsf{pip3}.
然后执行
\begin{lstlisting}
python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
\end{lstlisting}
将源全部换为清华源.
接下来执行
\begin{lstlisting}
python3 -m pip install pyvista
\end{lstlisting}
安装 \texttt{pyvista}.

\section{测试安装}

Expand Down

0 comments on commit 6c60c63

Please sign in to comment.