Hello, I recently upgraded my MacBook from M2 to M4, and I am trying to get my usual legacy fenics setup via conda. For osx-arm64, I typically use the following commands to install:
conda create --override-channels -c conda-forge/osx-64 -c conda-forge/noarch -n fenicsproject fenics mshr
However, now it keeps saying mshr is not found. I have tried many conda channels and still the same situation. I understand that mshr is no longer maintained, but I thought it should still be available on conda-forge (conda: mshr) ?
Alternatively, I tried downloading the .conda
file directly from osx-64/mshr-2019.1.0-py39h1d3f879_10.conda and use conda install
. However, after the installation is done, importing mshr in a python script under the environment it was installed in was still not found.
Any ideas on how to fix this issue?
Many thanks!
Edit:
here is the output from conda search mshr
Loading channels: done
No match found for: mshr. Search: *mshr*
PackagesNotFoundError: The following packages are not available from current channels:
- mshr
Current channels:
- https://conda.anaconda.org/conda-forge/osx-arm64
- https://conda.anaconda.org/conda-forge/noarch
- https://repo.anaconda.com/pkgs/main/osx-arm64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/osx-arm64
- https://repo.anaconda.com/pkgs/r/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
Edit 2:
by specifying the conda mshr link, conda install https://anaconda.org/conda-forge/mshr/2019.1.0/download/osx-64/mshr-2019.1.0-py39h1d3f879_10.conda
This is the installation log:
Downloading and Extracting Packages:
## Package Plan ##
environment location: /opt/anaconda3/envs/fenicsproject
added / updated specs:
- conda-forge/mshr/2019.1.0/download/osx-64::mshr==2019.1.0=py39h1d3f879_10
The following NEW packages will be INSTALLED:
mshr conda-forge/mshr/2019.1.0/download/osx-64::mshr-2019.1.0-py39h1d3f879_10
Downloading and Extracting Packages:
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
However, same issue of no module mshr:
Traceback (most recent call last):
File "XXXXXXXXXXXX.py", line 2, in <module>
import mshr
ModuleNotFoundError: No module named 'mshr'