taowang11 / MS

4 stars 0 forks source link

Install problem #1

Open sistar2020 opened 2 months ago

sistar2020 commented 2 months ago

On Ubuntu 22.04,

$ git clone https://github.com/taowang11/MS.git
$ conda create -n MS python=3.9
$ conda activate MS
$ pip install numpy==1.20.3 pandas==1.5.3 scikit_learn==1.2.1 torch==1.13.1 torch-geometric==2.0.4
$ pip install torch_sparse

  ERROR: Failed building wheel for torch_sparse
  Running setup.py clean for torch_sparse
Failed to build torch_sparse
ERROR: Could not build wheels for torch_sparse, which is required to install pyproject.toml-based projects

So I installed torch-sparse and torch as below:

$ pip install torch-sparse==0.6.13 -f https://pytorch-geometric.com/whl/torch-1.10.0+cu113.html

It worked OK so far. But when I tried to run 'create_data.py', I got a core dump.

$ python create_data.py
Segmentation fault (core dumped)

Any suggestions? Do you have an updated version of MS?

taowang11 commented 2 months ago

Hello, it might be helpful to check online for how to install pyg. You can refer to this link: https://pytorch-geometric.readthedocs.io/en/latest/notes/installation.html. Regarding the second issue, I think it could be related to the environment not being set up correctly. This error is quite broad, so it's difficult to pinpoint the exact cause