I used conda-pack to copy my fenics virtual env from Ubuntu system to centos.I got this error when I import dolfin;
Traceback (most recent call last):
File "test.py", line 1, in <module>
from deepfluid.fenics.fenics_domains import *
File "/public/home/jiangzhangze/fenics-DRL/deepfluid/__init__.py", line 4, in <module>
from . import fenics
File "/public/home/jiangzhangze/fenics-DRL/deepfluid/fenics/__init__.py", line 3, in <module>
from .fenics_domains import *
File "/public/home/jiangzhangze/fenics-DRL/deepfluid/fenics/fenics_domains.py", line 9, in <module>
from dolfin import *
File "/public/home/jiangzhangze/anaconda3/envs/fenics/lib/python3.7/site-packages/dolfin/__init__.py", line 140, in <module>
from .fem.assembling import (assemble, assemble_system, assemble_multimesh,
File "/public/home/jiangzhangze/anaconda3/envs/fenics/lib/python3.7/site-packages/dolfin/fem/assembling.py", line 34, in <module>
from dolfin.fem.form import Form
File "/public/home/jiangzhangze/anaconda3/envs/fenics/lib/python3.7/site-packages/dolfin/fem/form.py", line 12, in <module>
from dolfin.jit.jit import dolfin_pc, ffc_jit
File "/public/home/jiangzhangze/anaconda3/envs/fenics/lib/python3.7/site-packages/dolfin/jit/jit.py", line 18, in <module>
raise RuntimeError("Could not find DOLFIN pkg-config file. Please make sure appropriate paths are set.")
RuntimeError: Could not find DOLFIN pkg-config file. Please make sure appropriate paths are set.
By the way, I don’t use jupyternotebook.And here are the output of print(os.environ['PATH'])
:
/public/home/jiangzhangze/anaconda3/envs/fenics/bin:/public/home/jiangzhangze/an aconda3/condabin:/public/home/jiangzhangze/anaconda3/bin:/public/software/starcc m1602/16.02.009-R8/STAR-View+16.02.009/bin:/public/software/starccm1602/16.02.00 9-R8/STAR-CCM+16.02.009-R8/star/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bi n:/usr/local/sbin:/usr/sbin:/opt/ibutils/bin:/public/home/jiangzhangze/.local/bi n:/public/home/jiangzhangze/bin
Any advices would be appreciated:)