Skip to content

New installation procedure for Mac, modern conda #14

@zacsimile

Description

@zacsimile

Python 3.7 has been removed from the Anaconda packages repository. As such, we experience the following issue during installation

(base) zachcm@eduroam-077-080-114-111 expansion-analysis % conda create --name psfinv python=3.7.10
Retrieving notices: ...working... done
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: failed

PackagesNotFoundError: The following packages are not available from current channels:

  - python=3.7.10

To remedy this, I currently bump to Python 3.9. However, this comes with a variety of packaging issues for this repository. Here is how to get it to install.

  1. Remove the pinned versions of tensorflow and tensorflow-probability and pin numpy to version <2. That is, change
"numpy",
...
"tensorflow==2.9.1",
"tensorflow-probability==0.17",

to

"numpy<2",
...
"tensorflow",
"tensorflow-probability",
  1. Run
mamba env create --name psfinv python=3.9
conda activate psfinv
pip install "cython<3"
pip install "pyyaml==5.4.1" --no-build-isolation
pip install -e .
pip install tf-keras

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions