How to activate conda environment fenicsproject during fenics installation on anaconda?

Hello

This is my another question thread beside the below thread as I was unable to finally get the visualization through the below question thread and I, now, am trying to install fenics through anaconda.

First I installed anaconda in my ubuntu 20.04.4 LTS WSL on windows 10. Then I ran these commands mentioned below (using jupyter notebook):

fenics@DESKTOP-CVH2BNB:~$ source ~/.bashrc

(base) fenics@DESKTOP-CVH2BNB:~$ jupyter notebook

After that, I executed the command

$ conda create -n fenicsproject -c conda-forge fenics -y

in my jupyter cell. The output is given below:

Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done

Package Plan

environment location: /home/fenics/anaconda3/envs/fenicsproject

added / updated specs:
- fenics

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
_libgcc_mutex-0.1          |      conda_forge           3 KB  conda-forge
_openmp_mutex-4.5          |            2_gnu          23 KB  conda-forge
binutils_impl_linux-64-2.36.1|       h193b22a_2        10.4 MB  conda-forge
binutils_linux-64-2.36     |      hf3e587d_10          24 KB  conda-forge
boost-cpp-1.74.0           |       h75c5d50_8        16.2 MB  conda-forge
bzip2-1.0.8                |       h7f98852_4         484 KB  conda-forge
c-ares-1.18.1              |       h7f98852_0         113 KB  conda-forge
ca-certificates-2022.5.18.1|       ha878542_0         144 KB  conda-forge
cmake-3.23.2               |       h5432695_0        16.3 MB  conda-forge
eigen-3.4.0                |       h4bd325d_0         1.2 MB  conda-forge
expat-2.4.8                |       h27087fc_0         187 KB  conda-forge
fenics-2019.1.0            | py310hff52083_30          12 KB  conda-forge
fenics-dijitso-2019.1.0    | py310hff52083_30          64 KB  conda-forge
fenics-dolfin-2019.1.0     | py310h583d6c0_30         1.2 MB  conda-forge
fenics-ffc-2019.1.0        | py310hff52083_30         477 KB  conda-forge
fenics-fiat-2019.1.0       | py310hff52083_30         140 KB  conda-forge
fenics-libdolfin-2019.1.0  |      hd78bcf9_30         2.3 MB  conda-forge
fenics-ufl-2019.1.0        | py310hff52083_30         342 KB  conda-forge
fftw-3.3.10                |mpi_mpich_h8b92f0a_2         6.5 MB  conda-forge
gcc_impl_linux-64-10.3.0   |      hf2f2afa_16        46.6 MB  conda-forge
gcc_linux-64-10.3.0        |      hc39de41_10          25 KB  conda-forge
gmp-6.2.1                  |       h58526e2_0         806 KB  conda-forge
gmpy2-2.1.2                |  py310h92f7908_0         800 KB  conda-forge
gxx_impl_linux-64-10.3.0   |      hf2f2afa_16        11.5 MB  conda-forge
gxx_linux-64-10.3.0        |      h2593f52_10          24 KB  conda-forge
hdf5-1.12.1                |mpi_mpich_h5d83325_4         3.7 MB  conda-forge
hypre-2.24.0               |mpi_mpich_hed3a557_1         1.8 MB  conda-forge
icu-70.1                   |       h27087fc_0        13.5 MB  conda-forge
kernel-headers_linux-64-2.6.32|      he073ed8_15         707 KB  conda-forge
keyutils-1.6.1             |       h166bdaf_0         115 KB  conda-forge
krb5-1.19.3                |       h08a2579_0         1.4 MB  conda-forge
ld_impl_linux-64-2.36.1    |       hea4e1c9_2         667 KB  conda-forge
libblas-3.9.0              |15_linux64_openblas          12 KB  conda-forge
libcblas-3.9.0             |15_linux64_openblas          12 KB  conda-forge
libcurl-7.83.1             |       h2283fc2_0         344 KB  conda-forge
libedit-3.1.20191231       |       he28a2e2_2         121 KB  conda-forge
libev-4.33                 |       h516909a_1         104 KB  conda-forge
libffi-3.4.2               |       h7f98852_5          57 KB  conda-forge
libgcc-devel_linux-64-10.3.0|      he6cfe16_16         3.3 MB  conda-forge
libgcc-ng-12.1.0           |      h8d9b700_16         940 KB  conda-forge
libgfortran-ng-12.1.0      |      h69a702a_16          23 KB  conda-forge
libgfortran5-12.1.0        |      hdcd56e2_16         1.8 MB  conda-forge
libgomp-12.1.0             |      h8d9b700_16         459 KB  conda-forge
liblapack-3.9.0            |15_linux64_openblas          12 KB  conda-forge
libnghttp2-1.47.0          |       he49606f_0         824 KB  conda-forge
libnsl-2.0.0               |       h7f98852_0          31 KB  conda-forge
libopenblas-0.3.20         |pthreads_h78a6416_0        10.1 MB  conda-forge
libsanitizer-10.3.0        |      h26c7422_16         6.0 MB  conda-forge
libssh2-1.10.0             |       ha35d2d1_2         233 KB  conda-forge
libstdcxx-devel_linux-64-10.3.0|      he6cfe16_16         9.6 MB  conda-forge
libstdcxx-ng-12.1.0        |      ha89aaad_16         4.3 MB  conda-forge
libuuid-2.32.1             |    h7f98852_1000          28 KB  conda-forge
libuv-1.43.0               |       h7f98852_0         1.0 MB  conda-forge
libzlib-1.2.12             |       h166bdaf_0          62 KB  conda-forge
lz4-c-1.9.3                |       h9c3ff4c_1         179 KB  conda-forge
metis-5.1.0                |    h58526e2_1006         4.1 MB  conda-forge
mpc-1.2.1                  |       h9f54685_0         106 KB  conda-forge
mpfr-4.1.0                 |       h9202a9a_1         2.6 MB  conda-forge
mpi-1.0                    |            mpich           4 KB  conda-forge
mpi4py-3.1.3               |  py310h37cc914_1         614 KB  conda-forge
mpich-4.0.2                |     h846660c_100         6.0 MB  conda-forge
mpmath-1.2.1               |     pyhd8ed1ab_0         437 KB  conda-forge
mumps-include-5.2.1        |      ha770c72_11          23 KB  conda-forge
mumps-mpi-5.2.1            |      h7ee95aa_11         3.3 MB  conda-forge
ncurses-6.3                |       h27087fc_1        1002 KB  conda-forge
numpy-1.22.4               |  py310h4ef5377_0         6.8 MB  conda-forge
openssl-3.0.3              |       h166bdaf_0         2.9 MB  conda-forge
parmetis-4.0.3             |    h2a9763c_1005         274 KB  conda-forge
petsc-3.17.2               |real_h6ce3b2e_101        11.3 MB  conda-forge
petsc4py-3.17.2            |real_h5faf7bb_100         1.2 MB  conda-forge
pip-22.1.2                 |     pyhd8ed1ab_0         1.5 MB  conda-forge
pkg-config-0.29.2          |    h36c2ea0_1008         120 KB  conda-forge
pkgconfig-1.5.5            |  py310hff52083_2          13 KB  conda-forge
ptscotch-6.0.9             |       hb499603_2         1.5 MB  conda-forge
pybind11-2.9.2             |  py310hbf28c38_1         162 KB  conda-forge
pybind11-global-2.9.2      |  py310hbf28c38_1         192 KB  conda-forge
python-3.10.4              |h2660328_0_cpython        28.6 MB  conda-forge
python_abi-3.10            |          2_cp310           4 KB  conda-forge
readline-8.1.2             |       h0f457ee_0         291 KB  conda-forge
rhash-1.4.1                |       h7f98852_0         192 KB  conda-forge
scalapack-2.2.0            |       hd931219_1         2.2 MB  conda-forge
scotch-6.0.9               |       hb2e6521_2         1.3 MB  conda-forge
setuptools-62.3.4          |  py310hff52083_0         1.3 MB  conda-forge
six-1.16.0                 |     pyh6c4a22f_0          14 KB  conda-forge
slepc-3.17.1               |real_ha2e80f3_100         3.9 MB  conda-forge
slepc4py-3.17.1            |real_h7df52cc_102         389 KB  conda-forge
sqlite-3.38.5              |       h4ff8645_0         1.5 MB  conda-forge
suitesparse-5.10.1         |       h9e50725_1         2.4 MB  conda-forge
superlu-5.2.2              |       h00795ac_0         218 KB  conda-forge
superlu_dist-7.2.0         |       h25dcc4a_0         1.1 MB  conda-forge
sympy-1.10.1               |  py310hff52083_0        11.7 MB  conda-forge
sysroot_linux-64-2.12      |      he073ed8_15        31.4 MB  conda-forge
tbb-2021.5.0               |       h924138e_1         1.9 MB  conda-forge
tk-8.6.12                  |       h27826a3_0         3.3 MB  conda-forge
tzdata-2022a               |       h191b570_0         121 KB  conda-forge
wheel-0.37.1               |     pyhd8ed1ab_0          31 KB  conda-forge
xz-5.2.5                   |       h516909a_1         343 KB  conda-forge
yaml-0.2.5                 |       h7f98852_2          87 KB  conda-forge
zlib-1.2.12                |       h166bdaf_0          90 KB  conda-forge
zstd-1.5.2                 |       h8a70e8d_1         452 KB  conda-forge
------------------------------------------------------------
                                       Total:       314.3 MB

The following NEW packages will be INSTALLED:

_libgcc_mutex conda-forge/linux-64::_libgcc_mutex-0.1-conda_forge
_openmp_mutex conda-forge/linux-64::_openmp_mutex-4.5-2_gnu
binutils_impl_lin~ conda-forge/linux-64::binutils_impl_linux-64-2.36.1-h193b22a_2
binutils_linux-64 conda-forge/linux-64::binutils_linux-64-2.36-hf3e587d_10
boost-cpp conda-forge/linux-64::boost-cpp-1.74.0-h75c5d50_8
bzip2 conda-forge/linux-64::bzip2-1.0.8-h7f98852_4
c-ares conda-forge/linux-64::c-ares-1.18.1-h7f98852_0
ca-certificates conda-forge/linux-64::ca-certificates-2022.5.18.1-ha878542_0
cmake conda-forge/linux-64::cmake-3.23.2-h5432695_0
eigen conda-forge/linux-64::eigen-3.4.0-h4bd325d_0
expat conda-forge/linux-64::expat-2.4.8-h27087fc_0
fenics conda-forge/linux-64::fenics-2019.1.0-py310hff52083_30
fenics-dijitso conda-forge/linux-64::fenics-dijitso-2019.1.0-py310hff52083_30
fenics-dolfin conda-forge/linux-64::fenics-dolfin-2019.1.0-py310h583d6c0_30
fenics-ffc conda-forge/linux-64::fenics-ffc-2019.1.0-py310hff52083_30
fenics-fiat conda-forge/linux-64::fenics-fiat-2019.1.0-py310hff52083_30
fenics-libdolfin conda-forge/linux-64::fenics-libdolfin-2019.1.0-hd78bcf9_30
fenics-ufl conda-forge/linux-64::fenics-ufl-2019.1.0-py310hff52083_30
fftw conda-forge/linux-64::fftw-3.3.10-mpi_mpich_h8b92f0a_2
gcc_impl_linux-64 conda-forge/linux-64::gcc_impl_linux-64-10.3.0-hf2f2afa_16
gcc_linux-64 conda-forge/linux-64::gcc_linux-64-10.3.0-hc39de41_10
gmp conda-forge/linux-64::gmp-6.2.1-h58526e2_0
gmpy2 conda-forge/linux-64::gmpy2-2.1.2-py310h92f7908_0
gxx_impl_linux-64 conda-forge/linux-64::gxx_impl_linux-64-10.3.0-hf2f2afa_16
gxx_linux-64 conda-forge/linux-64::gxx_linux-64-10.3.0-h2593f52_10
hdf5 conda-forge/linux-64::hdf5-1.12.1-mpi_mpich_h5d83325_4
hypre conda-forge/linux-64::hypre-2.24.0-mpi_mpich_hed3a557_1
icu conda-forge/linux-64::icu-70.1-h27087fc_0
kernel-headers_li~ conda-forge/noarch::kernel-headers_linux-64-2.6.32-he073ed8_15
keyutils conda-forge/linux-64::keyutils-1.6.1-h166bdaf_0
krb5 conda-forge/linux-64::krb5-1.19.3-h08a2579_0
ld_impl_linux-64 conda-forge/linux-64::ld_impl_linux-64-2.36.1-hea4e1c9_2
libblas conda-forge/linux-64::libblas-3.9.0-15_linux64_openblas
libcblas conda-forge/linux-64::libcblas-3.9.0-15_linux64_openblas
libcurl conda-forge/linux-64::libcurl-7.83.1-h2283fc2_0
libedit conda-forge/linux-64::libedit-3.1.20191231-he28a2e2_2
libev conda-forge/linux-64::libev-4.33-h516909a_1
libffi conda-forge/linux-64::libffi-3.4.2-h7f98852_5
libgcc-devel_linu~ conda-forge/linux-64::libgcc-devel_linux-64-10.3.0-he6cfe16_16
libgcc-ng conda-forge/linux-64::libgcc-ng-12.1.0-h8d9b700_16
libgfortran-ng conda-forge/linux-64::libgfortran-ng-12.1.0-h69a702a_16
libgfortran5 conda-forge/linux-64::libgfortran5-12.1.0-hdcd56e2_16
libgomp conda-forge/linux-64::libgomp-12.1.0-h8d9b700_16
liblapack conda-forge/linux-64::liblapack-3.9.0-15_linux64_openblas
libnghttp2 conda-forge/linux-64::libnghttp2-1.47.0-he49606f_0
libnsl conda-forge/linux-64::libnsl-2.0.0-h7f98852_0
libopenblas conda-forge/linux-64::libopenblas-0.3.20-pthreads_h78a6416_0
libsanitizer conda-forge/linux-64::libsanitizer-10.3.0-h26c7422_16
libssh2 conda-forge/linux-64::libssh2-1.10.0-ha35d2d1_2
libstdcxx-devel_l~ conda-forge/linux-64::libstdcxx-devel_linux-64-10.3.0-he6cfe16_16
libstdcxx-ng conda-forge/linux-64::libstdcxx-ng-12.1.0-ha89aaad_16
libuuid conda-forge/linux-64::libuuid-2.32.1-h7f98852_1000
libuv conda-forge/linux-64::libuv-1.43.0-h7f98852_0
libzlib conda-forge/linux-64::libzlib-1.2.12-h166bdaf_0
lz4-c conda-forge/linux-64::lz4-c-1.9.3-h9c3ff4c_1
metis conda-forge/linux-64::metis-5.1.0-h58526e2_1006
mpc conda-forge/linux-64::mpc-1.2.1-h9f54685_0
mpfr conda-forge/linux-64::mpfr-4.1.0-h9202a9a_1
mpi conda-forge/linux-64::mpi-1.0-mpich
mpi4py conda-forge/linux-64::mpi4py-3.1.3-py310h37cc914_1
mpich conda-forge/linux-64::mpich-4.0.2-h846660c_100
mpmath conda-forge/noarch::mpmath-1.2.1-pyhd8ed1ab_0
mumps-include conda-forge/linux-64::mumps-include-5.2.1-ha770c72_11
mumps-mpi conda-forge/linux-64::mumps-mpi-5.2.1-h7ee95aa_11
ncurses conda-forge/linux-64::ncurses-6.3-h27087fc_1
numpy conda-forge/linux-64::numpy-1.22.4-py310h4ef5377_0
openssl conda-forge/linux-64::openssl-3.0.3-h166bdaf_0
parmetis conda-forge/linux-64::parmetis-4.0.3-h2a9763c_1005
petsc conda-forge/linux-64::petsc-3.17.2-real_h6ce3b2e_101
petsc4py conda-forge/linux-64::petsc4py-3.17.2-real_h5faf7bb_100
pip conda-forge/noarch::pip-22.1.2-pyhd8ed1ab_0
pkg-config conda-forge/linux-64::pkg-config-0.29.2-h36c2ea0_1008
pkgconfig conda-forge/linux-64::pkgconfig-1.5.5-py310hff52083_2
ptscotch conda-forge/linux-64::ptscotch-6.0.9-hb499603_2
pybind11 conda-forge/linux-64::pybind11-2.9.2-py310hbf28c38_1
pybind11-global conda-forge/linux-64::pybind11-global-2.9.2-py310hbf28c38_1
python conda-forge/linux-64::python-3.10.4-h2660328_0_cpython
python_abi conda-forge/linux-64::python_abi-3.10-2_cp310
readline conda-forge/linux-64::readline-8.1.2-h0f457ee_0
rhash conda-forge/linux-64::rhash-1.4.1-h7f98852_0
scalapack conda-forge/linux-64::scalapack-2.2.0-hd931219_1
scotch conda-forge/linux-64::scotch-6.0.9-hb2e6521_2
setuptools conda-forge/linux-64::setuptools-62.3.4-py310hff52083_0
six conda-forge/noarch::six-1.16.0-pyh6c4a22f_0
slepc conda-forge/linux-64::slepc-3.17.1-real_ha2e80f3_100
slepc4py conda-forge/linux-64::slepc4py-3.17.1-real_h7df52cc_102
sqlite conda-forge/linux-64::sqlite-3.38.5-h4ff8645_0
suitesparse conda-forge/linux-64::suitesparse-5.10.1-h9e50725_1
superlu conda-forge/linux-64::superlu-5.2.2-h00795ac_0
superlu_dist conda-forge/linux-64::superlu_dist-7.2.0-h25dcc4a_0
sympy conda-forge/linux-64::sympy-1.10.1-py310hff52083_0
sysroot_linux-64 conda-forge/noarch::sysroot_linux-64-2.12-he073ed8_15
tbb conda-forge/linux-64::tbb-2021.5.0-h924138e_1
tk conda-forge/linux-64::tk-8.6.12-h27826a3_0
tzdata conda-forge/noarch::tzdata-2022a-h191b570_0
wheel conda-forge/noarch::wheel-0.37.1-pyhd8ed1ab_0
xz conda-forge/linux-64::xz-5.2.5-h516909a_1
yaml conda-forge/linux-64::yaml-0.2.5-h7f98852_2
zlib conda-forge/linux-64::zlib-1.2.12-h166bdaf_0
zstd conda-forge/linux-64::zstd-1.5.2-h8a70e8d_1

Downloading and Extracting Packages
cmake-3.23.2 | 16.3 MB | ##################################### | 100%
superlu-5.2.2 | 218 KB | ##################################### | 100%
tbb-2021.5.0 | 1.9 MB | ##################################### | 100%
scalapack-2.2.0 | 2.2 MB | ##################################### | 100%
gxx_impl_linux-64-10 | 11.5 MB | ##################################### | 100%
libgcc-ng-12.1.0 | 940 KB | ##################################### | 100%
bzip2-1.0.8 | 484 KB | ##################################### | 100%
fenics-dolfin-2019.1 | 1.2 MB | ##################################### | 100%
hdf5-1.12.1 | 3.7 MB | ##################################### | 100%
libblas-3.9.0 | 12 KB | ##################################### | 100%
expat-2.4.8 | 187 KB | ##################################### | 100%
libev-4.33 | 104 KB | ##################################### | 100%
tzdata-2022a | 121 KB | ##################################### | 100%
binutils_linux-64-2. | 24 KB | ##################################### | 100%
sysroot_linux-64-2.1 | 31.4 MB | ##################################### | 100%
libzlib-1.2.12 | 62 KB | ##################################### | 100%
libffi-3.4.2 | 57 KB | ##################################### | 100%
rhash-1.4.1 | 192 KB | ##################################### | 100%
zlib-1.2.12 | 90 KB | ##################################### | 100%
mpfr-4.1.0 | 2.6 MB | ##################################### | 100%
mpc-1.2.1 | 106 KB | ##################################### | 100%
libcurl-7.83.1 | 344 KB | ##################################### | 100%
boost-cpp-1.74.0 | 16.2 MB | ##################################### | 100%
superlu_dist-7.2.0 | 1.1 MB | ##################################### | 100%
binutils_impl_linux- | 10.4 MB | ##################################### | 100%
openssl-3.0.3 | 2.9 MB | ##################################### | 100%
mumps-include-5.2.1 | 23 KB | ##################################### | 100%
petsc-3.17.2 | 11.3 MB | ##################################### | 100%
fenics-2019.1.0 | 12 KB | ##################################### | 100%
ld_impl_linux-64-2.3 | 667 KB | ##################################### | 100%
gcc_linux-64-10.3.0 | 25 KB | ##################################### | 100%
fenics-ufl-2019.1.0 | 342 KB | ##################################### | 100%
sympy-1.10.1 | 11.7 MB | ##################################### | 100%
metis-5.1.0 | 4.1 MB | ##################################### | 100%
xz-5.2.5 | 343 KB | ##################################### | 100%
libnghttp2-1.47.0 | 824 KB | ##################################### | 100%
gcc_impl_linux-64-10 | 46.6 MB | ##################################### | 100%
eigen-3.4.0 | 1.2 MB | ##################################### | 100%
libopenblas-0.3.20 | 10.1 MB | ##################################### | 100%
libuuid-2.32.1 | 28 KB | ##################################### | 100%
six-1.16.0 | 14 KB | ##################################### | 100%
libsanitizer-10.3.0 | 6.0 MB | ##################################### | 100%
lz4-c-1.9.3 | 179 KB | ##################################### | 100%
libstdcxx-ng-12.1.0 | 4.3 MB | ##################################### | 100%
fenics-ffc-2019.1.0 | 477 KB | ##################################### | 100%
icu-70.1 | 13.5 MB | ##################################### | 100%
pip-22.1.2 | 1.5 MB | ##################################### | 100%
pybind11-2.9.2 | 162 KB | ##################################### | 100%
python-3.10.4 | 28.6 MB | ##################################### | 100%
mpmath-1.2.1 | 437 KB | ##################################### | 100%
liblapack-3.9.0 | 12 KB | ##################################### | 100%
tk-8.6.12 | 3.3 MB | ##################################### | 100%
hypre-2.24.0 | 1.8 MB | ##################################### | 100%
ca-certificates-2022 | 144 KB | ##################################### | 100%
libuv-1.43.0 | 1.0 MB | ##################################### | 100%
python_abi-3.10 | 4 KB | ##################################### | 100%
libgfortran5-12.1.0 | 1.8 MB | ##################################### | 100%
pkgconfig-1.5.5 | 13 KB | ##################################### | 100%
libnsl-2.0.0 | 31 KB | ##################################### | 100%
mpi-1.0 | 4 KB | ##################################### | 100%
kernel-headers_linux | 707 KB | ##################################### | 100%
_openmp_mutex-4.5 | 23 KB | ##################################### | 100%
numpy-1.22.4 | 6.8 MB | ##################################### | 100%
c-ares-1.18.1 | 113 KB | ##################################### | 100%
keyutils-1.6.1 | 115 KB | ##################################### | 100%
gxx_linux-64-10.3.0 | 24 KB | ##################################### | 100%
slepc-3.17.1 | 3.9 MB | ##################################### | 100%
libgomp-12.1.0 | 459 KB | ##################################### | 100%
parmetis-4.0.3 | 274 KB | ##################################### | 100%
mpich-4.0.2 | 6.0 MB | ##################################### | 100%
slepc4py-3.17.1 | 389 KB | ##################################### | 100%
libgfortran-ng-12.1. | 23 KB | ##################################### | 100%
libssh2-1.10.0 | 233 KB | ##################################### | 100%
gmp-6.2.1 | 806 KB | ##################################### | 100%
fenics-libdolfin-201 | 2.3 MB | ##################################### | 100%
yaml-0.2.5 | 87 KB | ##################################### | 100%
ptscotch-6.0.9 | 1.5 MB | ##################################### | 100%
pkg-config-0.29.2 | 120 KB | ##################################### | 100%
fenics-dijitso-2019. | 64 KB | ##################################### | 100%
gmpy2-2.1.2 | 800 KB | ##################################### | 100%
libstdcxx-devel_linu | 9.6 MB | ##################################### | 100%
setuptools-62.3.4 | 1.3 MB | ##################################### | 100%
krb5-1.19.3 | 1.4 MB | ##################################### | 100%
mpi4py-3.1.3 | 614 KB | ##################################### | 100%
sqlite-3.38.5 | 1.5 MB | ##################################### | 100%
scotch-6.0.9 | 1.3 MB | ##################################### | 100%
fftw-3.3.10 | 6.5 MB | ##################################### | 100%
readline-8.1.2 | 291 KB | ##################################### | 100%
libedit-3.1.20191231 | 121 KB | ##################################### | 100%
fenics-fiat-2019.1.0 | 140 KB | ##################################### | 100%
suitesparse-5.10.1 | 2.4 MB | ##################################### | 100%
wheel-0.37.1 | 31 KB | ##################################### | 100%
libcblas-3.9.0 | 12 KB | ##################################### | 100%
libgcc-devel_linux-6 | 3.3 MB | ##################################### | 100%
ncurses-6.3 | 1002 KB | ##################################### | 100%
zstd-1.5.2 | 452 KB | ##################################### | 100%
pybind11-global-2.9. | 192 KB | ##################################### | 100%
mumps-mpi-5.2.1 | 3.3 MB | ##################################### | 100%
petsc4py-3.17.2 | 1.2 MB | ##################################### | 100%
_libgcc_mutex-0.1 | 3 KB | ##################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

To activate this environment, use

$ conda activate fenicsproject

To deactivate an active environment, use

$ conda deactivate

Note: you may need to restart the kernel to use updated packages.

Then I executed

$ conda activate fenicsproject

in jupyter cell and I am getting this output:

CommandNotFoundError: Your shell has not been properly configured to use ‘conda activate’.
To initialize your shell, run

$ conda init <SHELL_NAME>

Currently supported shells are:

  • bash
  • fish
  • tcsh
  • xonsh
  • zsh
  • powershell

See ‘conda init --help’ for more information and options.

IMPORTANT: You may need to close and restart your shell after running ‘conda init’.

Note: you may need to restart the kernel to use updated packages.

Then I ran

$ conda init bash

in cell and I get the output:

no change /home/fenics/anaconda3/condabin/conda
no change /home/fenics/anaconda3/bin/conda
no change /home/fenics/anaconda3/bin/conda-env
no change /home/fenics/anaconda3/bin/activate
no change /home/fenics/anaconda3/bin/deactivate
no change /home/fenics/anaconda3/etc/profile.d/conda.sh
no change /home/fenics/anaconda3/etc/fish/conf.d/conda.fish
no change /home/fenics/anaconda3/shell/condabin/Conda.psm1
no change /home/fenics/anaconda3/shell/condabin/conda-hook.ps1
no change /home/fenics/anaconda3/lib/python3.9/site-packages/xontrib/conda.xsh
no change /home/fenics/anaconda3/etc/profile.d/conda.csh
no change /home/fenics/.bashrc
No action taken.

Note: you may need to restart the kernel to use updated packages.

How to solve the problem?

Firstly, fenicsx is now the recommended solver. See here.

It looks like your fenicsproject conda environment was installed correctly.

This should work from an Anaconda powershell on windows.

Perhaps this or this will help you to use your conda environment inside your jupyter notebook.

  1. I am following this guideline: How to add your Conda environment to your jupyter notebook in just 4 steps | by Noopur R K | Medium.
    I have installed ipykernel and executing this below-mentioned command in ubuntu command prompand getting the output:

(base) fenics@DESKTOP-CVH2BNB:~$ python -m ipykernel install --user --name=fenicsproject

Installed kernelspec fenicsproject in /home/fenics/.local/share/jupyter/kernels/fenicsproject

Following the link (first link given by you), at next step, I enter into jupyter notebook and can notice the fenicsproject environment. But when I pass the command in jupyter notebook cell:

from dolfinx import fem, io, mesh, plot

(from https://github.com/FEniCS/dolfinx/blob/main/python/demo/demo_poisson.py)

I am getting the error. (attached with this mail in .jpeg format)

  1. I will be happy if you give the instruction to install fenicsx in lieu of fenics by anaconda.

The readme of dolfinx contains instructions to install with conda.
What you are looking for is probably the following command (after having created a conda environment and activated it)

conda install -c conda-forge fenics-dolfinx mpich pyvista

Is this not because you installed fenics as an oppose to fenicsx? For instance, you ran

from dolfinx import fem would only work in fenicsx.

What @Calva suggested is the relevant conda approach or fenicsx

fenics@DESKTOP-CVH2BNB:~$ source ~/.bashrc

(base) fenics@DESKTOP-CVH2BNB:~$ conda install -c conda-forge fenics-dolfinx mpich pyvista
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment:
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
Examining conflict for notebook-shim stack_data pyerfa cached-property qtpy twisted matplotlib protobuf nbclassic clye\

“The examining conflict…” portion loading since one and half days with no output further.
What is your suggestion regarding that?

Create a new conda environment for fenicsx, enter that environment and then try running

conda install -c conda-forge fenics-dolfinx mpich pyvista

fenics@DESKTOP-CVH2BNB:~$ source ~/.bashrc

(base) fenics@DESKTOP-CVH2BNB:~$ conda install -c conda-forge fenics-dolfinx mpich pyvista
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://conda.anaconda.org/conda-forge/linux-64/repodata.json
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
‘https//conda.anaconda.org/conda-forge/linux-64’

Doesn’t look like you tried the previous suggestion. Run this from your base environment

conda create -n fenicsx-project -c conda-forge fenics-dolfinx mpich pyvista

I used following commands in ubuntu terminal:

fenics@DESKTOP-CVH2BNB:~$ source ~/.bashrc

Then it’s converted into (base).
Then I executed:

(base) fenics@DESKTOP-CVH2BNB:~$ conda create -n fenicsx-project -c conda-forge fenics-dolfinx mpich pyvista
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done

Package Plan

environment location: /home/fenics/anaconda3/envs/fenicsx-project

added / updated specs:
- fenics-dolfinx
- mpich
- pyvista

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
gst-plugins-base-1.20.2    |       hf6a322e_2         2.8 MB  conda-forge
gstreamer-1.20.2           |       hd4edc92_2         2.0 MB  conda-forge
libpq-14.4                 |       hd77ab85_0         2.9 MB  conda-forge
------------------------------------------------------------
                                       Total:         7.7 MB

The following NEW packages will be INSTALLED:

_libgcc_mutex conda-forge/linux-64::_libgcc_mutex-0.1-conda_forge
_openmp_mutex conda-forge/linux-64::_openmp_mutex-4.5-2_gnu
adios2 conda-forge/linux-64::adios2-2.8.1-mpi_mpich_py310h325970b_0
alsa-lib conda-forge/linux-64::alsa-lib-1.2.6.1-h7f98852_0
aom conda-forge/linux-64::aom-3.3.0-h27087fc_1
appdirs conda-forge/noarch::appdirs-1.4.4-pyh9f0ad1d_0
attr conda-forge/linux-64::attr-2.5.1-h166bdaf_0
binutils_impl_lin~ conda-forge/linux-64::binutils_impl_linux-64-2.36.1-h193b22a_2
binutils_linux-64 conda-forge/linux-64::binutils_linux-64-2.36-hf3e587d_10
blosc conda-forge/linux-64::blosc-1.21.1-h83bc5f7_3
boost-cpp conda-forge/linux-64::boost-cpp-1.74.0-h75c5d50_8
bzip2 conda-forge/linux-64::bzip2-1.0.8-h7f98852_4
c-ares conda-forge/linux-64::c-ares-1.18.1-h7f98852_0
ca-certificates conda-forge/linux-64::ca-certificates-2022.6.15-ha878542_0
cffi conda-forge/linux-64::cffi-1.15.0-py310h0fdd8cc_0
curl conda-forge/linux-64::curl-7.83.1-h7bff187_0
dbus conda-forge/linux-64::dbus-1.13.6-h5008d03_3
double-conversion conda-forge/linux-64::double-conversion-3.2.0-h9c3ff4c_0
eigen conda-forge/linux-64::eigen-3.4.0-h4bd325d_0
expat conda-forge/linux-64::expat-2.4.8-h27087fc_0
fenics-basix conda-forge/linux-64::fenics-basix-0.4.2-py310hbf28c38_3
fenics-dolfinx conda-forge/linux-64::fenics-dolfinx-0.4.1-py310h0d9d84b_108
fenics-ffcx conda-forge/noarch::fenics-ffcx-0.4.2-pyhb871ab6_1
fenics-libbasix conda-forge/linux-64::fenics-libbasix-0.4.2-heb3b609_3
fenics-libdolfinx conda-forge/linux-64::fenics-libdolfinx-0.4.1-h6c9e7b6_108
fenics-ufcx conda-forge/noarch::fenics-ufcx-0.4.2-hb871ab6_1
fenics-ufl conda-forge/noarch::fenics-ufl-2022.1.0-pyhd8ed1ab_0
ffmpeg conda-forge/linux-64::ffmpeg-4.4.2-habc3f16_0
fftw conda-forge/linux-64::fftw-3.3.10-mpi_mpich_h8b92f0a_2
font-ttf-dejavu-s~ conda-forge/noarch::font-ttf-dejavu-sans-mono-2.37-hab24e00_0
font-ttf-inconsol~ conda-forge/noarch::font-ttf-inconsolata-3.000-h77eed37_0
font-ttf-source-c~ conda-forge/noarch::font-ttf-source-code-pro-2.038-h77eed37_0
font-ttf-ubuntu conda-forge/noarch::font-ttf-ubuntu-0.83-hab24e00_0
fontconfig conda-forge/linux-64::fontconfig-2.14.0-h8e229c2_0
fonts-conda-ecosy~ conda-forge/noarch::fonts-conda-ecosystem-1-0
fonts-conda-forge conda-forge/noarch::fonts-conda-forge-1-0
freetype conda-forge/linux-64::freetype-2.10.4-h0708190_1
gcc_impl_linux-64 conda-forge/linux-64::gcc_impl_linux-64-10.3.0-hf2f2afa_16
gcc_linux-64 conda-forge/linux-64::gcc_linux-64-10.3.0-hc39de41_10
gettext conda-forge/linux-64::gettext-0.19.8.1-h73d1719_1008
giflib conda-forge/linux-64::giflib-5.2.1-h36c2ea0_2
gl2ps conda-forge/linux-64::gl2ps-1.4.2-h0708190_0
glew conda-forge/linux-64::glew-2.1.0-h9c3ff4c_2
glib conda-forge/linux-64::glib-2.70.2-h780b84a_4
glib-tools conda-forge/linux-64::glib-tools-2.70.2-h780b84a_4
gmp conda-forge/linux-64::gmp-6.2.1-h58526e2_0
gnutls conda-forge/linux-64::gnutls-3.7.6-hf3e180e_5
gst-plugins-base conda-forge/linux-64::gst-plugins-base-1.20.2-hf6a322e_2
gstreamer conda-forge/linux-64::gstreamer-1.20.2-hd4edc92_2
gxx_impl_linux-64 conda-forge/linux-64::gxx_impl_linux-64-10.3.0-hf2f2afa_16
gxx_linux-64 conda-forge/linux-64::gxx_linux-64-10.3.0-h2593f52_10
hdf4 conda-forge/linux-64::hdf4-4.2.15-h10796ff_3
hdf5 conda-forge/linux-64::hdf5-1.12.1-mpi_mpich_h08b82f9_4
hypre conda-forge/linux-64::hypre-2.24.0-mpi_mpich_hed3a557_1
icu conda-forge/linux-64::icu-70.1-h27087fc_0
imageio conda-forge/noarch::imageio-2.19.3-pyhcf75d05_0
jack conda-forge/linux-64::jack-1.9.18-h8c3723f_1002
jpeg conda-forge/linux-64::jpeg-9e-h166bdaf_1
jsoncpp conda-forge/linux-64::jsoncpp-1.9.5-h4bd325d_1
kernel-headers_li~ conda-forge/noarch::kernel-headers_linux-64-2.6.32-he073ed8_15
keyutils conda-forge/linux-64::keyutils-1.6.1-h166bdaf_0
krb5 conda-forge/linux-64::krb5-1.19.3-h3790be6_0
lame conda-forge/linux-64::lame-3.100-h7f98852_1001
lcms2 conda-forge/linux-64::lcms2-2.12-hddcbb42_0
ld_impl_linux-64 conda-forge/linux-64::ld_impl_linux-64-2.36.1-hea4e1c9_2
lerc conda-forge/linux-64::lerc-3.0-h9c3ff4c_0
libblas conda-forge/linux-64::libblas-3.9.0-15_linux64_openblas
libcap conda-forge/linux-64::libcap-2.64-ha37c62d_0
libcblas conda-forge/linux-64::libcblas-3.9.0-15_linux64_openblas
libclang conda-forge/linux-64::libclang-14.0.5-default_h2e3cab8_0
libclang13 conda-forge/linux-64::libclang13-14.0.5-default_h3a83d3e_0
libcups conda-forge/linux-64::libcups-2.3.3-hf5a7f15_1
libcurl conda-forge/linux-64::libcurl-7.83.1-h7bff187_0
libdb conda-forge/linux-64::libdb-6.2.32-h9c3ff4c_0
libdeflate conda-forge/linux-64::libdeflate-1.12-h166bdaf_0
libdrm conda-forge/linux-64::libdrm-2.4.111-h166bdaf_0
libedit conda-forge/linux-64::libedit-3.1.20191231-he28a2e2_2
libev conda-forge/linux-64::libev-4.33-h516909a_1
libevent conda-forge/linux-64::libevent-2.1.10-h9b69904_4
libffi conda-forge/linux-64::libffi-3.4.2-h7f98852_5
libflac conda-forge/linux-64::libflac-1.3.4-h27087fc_0
libgcc-devel_linu~ conda-forge/linux-64::libgcc-devel_linux-64-10.3.0-he6cfe16_16
libgcc-ng conda-forge/linux-64::libgcc-ng-12.1.0-h8d9b700_16
libgfortran-ng conda-forge/linux-64::libgfortran-ng-12.1.0-h69a702a_16
libgfortran5 conda-forge/linux-64::libgfortran5-12.1.0-hdcd56e2_16
libglib conda-forge/linux-64::libglib-2.70.2-h174f98d_4
libglu conda-forge/linux-64::libglu-9.0.0-he1b5a44_1001
libgomp conda-forge/linux-64::libgomp-12.1.0-h8d9b700_16
libiconv conda-forge/linux-64::libiconv-1.16-h516909a_0
libidn2 conda-forge/linux-64::libidn2-2.3.2-h7f98852_0
liblapack conda-forge/linux-64::liblapack-3.9.0-15_linux64_openblas
libllvm14 conda-forge/linux-64::libllvm14-14.0.5-he0ac6c6_0
libnetcdf conda-forge/linux-64::libnetcdf-4.8.1-mpi_mpich_hcdf9059_2
libnghttp2 conda-forge/linux-64::libnghttp2-1.47.0-h727a467_0
libnsl conda-forge/linux-64::libnsl-2.0.0-h7f98852_0
libogg conda-forge/linux-64::libogg-1.3.4-h7f98852_1
libopenblas conda-forge/linux-64::libopenblas-0.3.20-pthreads_h78a6416_0
libopus conda-forge/linux-64::libopus-1.3.1-h7f98852_1
libpciaccess conda-forge/linux-64::libpciaccess-0.16-h516909a_0
libpng conda-forge/linux-64::libpng-1.6.37-h21135ba_2
libpq conda-forge/linux-64::libpq-14.4-hd77ab85_0
libsanitizer conda-forge/linux-64::libsanitizer-10.3.0-h26c7422_16
libsndfile conda-forge/linux-64::libsndfile-1.0.31-h9c3ff4c_1
libsodium conda-forge/linux-64::libsodium-1.0.18-h36c2ea0_1
libssh2 conda-forge/linux-64::libssh2-1.10.0-ha56f1ee_2
libstdcxx-devel_l~ conda-forge/linux-64::libstdcxx-devel_linux-64-10.3.0-he6cfe16_16
libstdcxx-ng conda-forge/linux-64::libstdcxx-ng-12.1.0-ha89aaad_16
libtasn1 conda-forge/linux-64::libtasn1-4.18.0-h166bdaf_1
libtheora conda-forge/linux-64::libtheora-1.1.1-h7f98852_1005
libtiff conda-forge/linux-64::libtiff-4.4.0-hc85c160_1
libtool conda-forge/linux-64::libtool-2.4.6-h9c3ff4c_1008
libudev1 conda-forge/linux-64::libudev1-249-h166bdaf_4
libunistring conda-forge/linux-64::libunistring-0.9.10-h7f98852_0
libuuid conda-forge/linux-64::libuuid-2.32.1-h7f98852_1000
libva conda-forge/linux-64::libva-2.14.0-h7f98852_0
libvorbis conda-forge/linux-64::libvorbis-1.3.7-h9c3ff4c_0
libvpx conda-forge/linux-64::libvpx-1.11.0-h9c3ff4c_3
libwebp conda-forge/linux-64::libwebp-1.2.2-h3452ae3_0
libwebp-base conda-forge/linux-64::libwebp-base-1.2.2-h7f98852_1
libxcb conda-forge/linux-64::libxcb-1.13-h7f98852_1004
libxkbcommon conda-forge/linux-64::libxkbcommon-1.0.3-he3ba5ed_0
libxml2 conda-forge/linux-64::libxml2-2.9.14-h22db469_0
libzip conda-forge/linux-64::libzip-1.8.0-h4de3113_1
libzlib conda-forge/linux-64::libzlib-1.2.12-h166bdaf_1
loguru conda-forge/linux-64::loguru-0.6.0-py310hff52083_1
lz4-c conda-forge/linux-64::lz4-c-1.9.3-h9c3ff4c_1
metis conda-forge/linux-64::metis-5.1.0-h58526e2_1006
mpfr conda-forge/linux-64::mpfr-4.1.0-h9202a9a_1
mpi conda-forge/linux-64::mpi-1.0-mpich
mpi4py conda-forge/linux-64::mpi4py-3.1.3-py310h37cc914_1
mpich conda-forge/linux-64::mpich-4.0.2-h846660c_100
mumps-include conda-forge/linux-64::mumps-include-5.2.1-ha770c72_11
mumps-mpi conda-forge/linux-64::mumps-mpi-5.2.1-h7ee95aa_11
mysql-common conda-forge/linux-64::mysql-common-8.0.29-haf5c9bc_1
mysql-libs conda-forge/linux-64::mysql-libs-8.0.29-h28c427c_1
ncurses conda-forge/linux-64::ncurses-6.3-h27087fc_1
nettle conda-forge/linux-64::nettle-3.8-hc379101_0
nspr conda-forge/linux-64::nspr-4.32-h9c3ff4c_1
nss conda-forge/linux-64::nss-3.78-h2350873_0
numpy conda-forge/linux-64::numpy-1.22.4-py310h4ef5377_0
openh264 conda-forge/linux-64::openh264-2.1.1-h780b84a_0
openjpeg conda-forge/linux-64::openjpeg-2.4.0-hb52868f_1
openssl conda-forge/linux-64::openssl-1.1.1o-h166bdaf_0
p11-kit conda-forge/linux-64::p11-kit-0.24.1-hc5aa10d_0
parmetis conda-forge/linux-64::parmetis-4.0.3-h2a9763c_1005
pcre conda-forge/linux-64::pcre-8.45-h9c3ff4c_0
petsc conda-forge/linux-64::petsc-3.17.2-real_h6ce3b2e_102
petsc4py conda-forge/linux-64::petsc4py-3.17.2-real_h5faf7bb_100
pillow conda-forge/linux-64::pillow-9.1.1-py310he619898_1
pip conda-forge/noarch::pip-22.1.2-pyhd8ed1ab_0
portaudio conda-forge/linux-64::portaudio-19.6.0-h57a0ea0_5
proj conda-forge/linux-64::proj-9.0.0-h93bde94_1
pthread-stubs conda-forge/linux-64::pthread-stubs-0.4-h36c2ea0_1001
ptscotch conda-forge/linux-64::ptscotch-6.0.9-hb499603_2
pugixml conda-forge/linux-64::pugixml-1.11.4-h9c3ff4c_0
pulseaudio conda-forge/linux-64::pulseaudio-14.0-h7f54b18_8
pycparser conda-forge/noarch::pycparser-2.21-pyhd8ed1ab_0
python conda-forge/linux-64::python-3.10.5-h582c2e5_0_cpython
python_abi conda-forge/linux-64::python_abi-3.10-2_cp310
pyvista conda-forge/noarch::pyvista-0.34.0-pyhd8ed1ab_0
qt-main conda-forge/linux-64::qt-main-5.15.4-ha5833f6_2
readline conda-forge/linux-64::readline-8.1.2-h0f457ee_0
scalapack conda-forge/linux-64::scalapack-2.2.0-hd931219_1
scooby conda-forge/noarch::scooby-0.5.12-pyhd8ed1ab_0
scotch conda-forge/linux-64::scotch-6.0.9-hb2e6521_2
setuptools conda-forge/linux-64::setuptools-62.3.4-py310hff52083_0
slepc conda-forge/linux-64::slepc-3.17.1-real_ha2e80f3_101
slepc4py conda-forge/linux-64::slepc4py-3.17.1-real_h7df52cc_102
snappy conda-forge/linux-64::snappy-1.1.9-hbd366e4_1
sqlite conda-forge/linux-64::sqlite-3.38.5-h4ff8645_0
suitesparse conda-forge/linux-64::suitesparse-5.10.1-h9e50725_1
superlu conda-forge/linux-64::superlu-5.2.2-h00795ac_0
superlu_dist conda-forge/linux-64::superlu_dist-7.2.0-h25dcc4a_0
svt-av1 conda-forge/linux-64::svt-av1-1.1.0-h27087fc_1
sysroot_linux-64 conda-forge/noarch::sysroot_linux-64-2.12-he073ed8_15
tbb conda-forge/linux-64::tbb-2021.5.0-h924138e_1
tbb-devel conda-forge/linux-64::tbb-devel-2021.5.0-h924138e_1
tk conda-forge/linux-64::tk-8.6.12-h27826a3_0
typing_extensions conda-forge/noarch::typing_extensions-4.2.0-pyha770c72_1
tzdata conda-forge/noarch::tzdata-2022a-h191b570_0
utfcpp conda-forge/linux-64::utfcpp-3.2.1-ha770c72_0
vtk conda-forge/linux-64::vtk-9.1.0-qt_py310h639fe90_209
wheel conda-forge/noarch::wheel-0.37.1-pyhd8ed1ab_0
x264 conda-forge/linux-64::x264-1!161.3030-h7f98852_1
x265 conda-forge/linux-64::x265-3.5-h924138e_3
xcb-util conda-forge/linux-64::xcb-util-0.4.0-h166bdaf_0
xcb-util-image conda-forge/linux-64::xcb-util-image-0.4.0-h166bdaf_0
xcb-util-keysyms conda-forge/linux-64::xcb-util-keysyms-0.4.0-h166bdaf_0
xcb-util-renderut~ conda-forge/linux-64::xcb-util-renderutil-0.3.9-h166bdaf_0
xcb-util-wm conda-forge/linux-64::xcb-util-wm-0.4.1-h166bdaf_0
xorg-fixesproto conda-forge/linux-64::xorg-fixesproto-5.0-h7f98852_1002
xorg-kbproto conda-forge/linux-64::xorg-kbproto-1.0.7-h7f98852_1002
xorg-libice conda-forge/linux-64::xorg-libice-1.0.10-h7f98852_0
xorg-libsm conda-forge/linux-64::xorg-libsm-1.2.3-hd9c2040_1000
xorg-libx11 conda-forge/linux-64::xorg-libx11-1.7.2-h7f98852_0
xorg-libxau conda-forge/linux-64::xorg-libxau-1.0.9-h7f98852_0
xorg-libxdmcp conda-forge/linux-64::xorg-libxdmcp-1.1.3-h7f98852_0
xorg-libxext conda-forge/linux-64::xorg-libxext-1.3.4-h7f98852_1
xorg-libxfixes conda-forge/linux-64::xorg-libxfixes-5.0.3-h7f98852_1004
xorg-libxt conda-forge/linux-64::xorg-libxt-1.2.1-h7f98852_2
xorg-xextproto conda-forge/linux-64::xorg-xextproto-7.3.0-h7f98852_1002
xorg-xproto conda-forge/linux-64::xorg-xproto-7.0.31-h7f98852_1007
xtensor conda-forge/linux-64::xtensor-0.24.2-h924138e_0
xtl conda-forge/linux-64::xtl-0.7.4-h4bd325d_0
xz conda-forge/linux-64::xz-5.2.5-h516909a_1
yaml conda-forge/linux-64::yaml-0.2.5-h7f98852_2
zeromq conda-forge/linux-64::zeromq-4.3.4-h9c3ff4c_1
zfp conda-forge/linux-64::zfp-0.5.5-h9c3ff4c_8
zlib conda-forge/linux-64::zlib-1.2.12-h166bdaf_1
zstd conda-forge/linux-64::zstd-1.5.2-h8a70e8d_1

Proceed ([y]/n)? y

Downloading and Extracting Packages
gstreamer-1.20.2 | 2.0 MB | ############################################################################# | 100%
gst-plugins-base-1.2 | 2.8 MB | ############################################################################# | 100%
libpq-14.4 | 2.9 MB | ############################################################################# | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done

To activate this environment, use

$ conda activate fenicsx-project

To deactivate an active environment, use

$ conda deactivate

(base) fenics@DESKTOP-CVH2BNB:~$ conda activate fenicsx-project

(fenicsx-project) fenics@DESKTOP-CVH2BNB:~$ conda install -c conda-forge fenics-dolfinx mpich pyvista
Collecting package metadata (current_repodata.json): done
Solving environment: done

All requested packages already installed.

Then I executed:

(fenicsx-project) fenics@DESKTOP-CVH2BNB:~$ jupyter notebook
-bash: jupyter: command not found

Nice, fenicsx installed with no errors.

As mentioned previously, you have to follows the steps in, for example, this to add your conda environment to your jupyter notebook. You have done steps 1 to 2 so far.

After following these steps, you can open your jupyter notebook as you previously would have, not like

Then create a new notebook with your fenicsx-project environment.

1 Like

Thanks @nav and @Calva ! The problem is solved. Thank you so much!

I was able to install the fenicsproject on conda. After installation, the prompt said to start the fenics environment use
(base)suman$:conda activate fenicsproejct #this is my conda environment
it chnages to
(fenicsproject)suman$:
then I tried to get a jupyter notebook, but it won’t start.no module error