Skip to content

Commit

Permalink
fix: torch import error while installing torch_sparse with pip
Browse files Browse the repository at this point in the history
  • Loading branch information
WenjieDu committed Apr 11, 2023
1 parent 53f6fb0 commit 6c819a5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/testing_daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# we have to install torch in advance because of torch_sparse,
# refer to https://github.com/rusty1s/pytorch_sparse/issues/156#issuecomment-1304869772 for details
pip install torch
pip install -r pypots/tests/environment_for_pip_test.txt
- name: Fetch the test environment details
Expand Down
6 changes: 3 additions & 3 deletions pypots/tests/environment_for_pip_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ coveralls
coverage
pycorruptor
tsdb
torch
# torch # torch already installed in advance, refer to workflow testing_daily.yml lines 27-29
torch_geometric
torch_sparse
torch_scatter
torch_geometric
torch_scatter

0 comments on commit 6c819a5

Please sign in to comment.