Skip to content

Commit

Permalink
fix import errors
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Jan 26, 2024
1 parent 9f565da commit 5c2ceb0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
mpi: openmpi
# https://github.com/pypa/pip/issues/11770
- run: python -m pip install -U "pip>=21.3.1,!=23.0.0"
- run: python -m pip install -U "torch==${{ matrix.torch }}"
- run: python -m pip install -U "torch==${{ matrix.torch }}" "numpy<1.23"
if: matrix.torch != ''
- run: pip install -e .[cpu,test,torch]
env:
Expand Down
4 changes: 0 additions & 4 deletions deepmd/pt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
try:
from ._version import version as __version__
except ImportError:
from .__about__ import __version__ as __version__

0 comments on commit 5c2ceb0

Please sign in to comment.