Skip to content

Commit ff30ce5

Browse files
authored
fix(learning): Fix torch version to be compatible with gcc8 and python3.7 (#3677)
Fix torch version at 1.13.1 to be compatible with gcc8 and python3.7
1 parent 049986a commit ff30ce5

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/local-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ jobs:
298298
# install tensorflow
299299
python3 -m pip install --no-cache-dir pytest pytest-xdist "tensorflow" "pandas" --user
300300
# install pytorch
301-
python3 -m pip install --no-cache-dir "torch" "networkx<=3.0" --index-url https://download.pytorch.org/whl/cpu
301+
python3 -m pip install --no-cache-dir "torch==1.13.1" "networkx<=3.0" --index-url https://download.pytorch.org/whl/cpu
302302
# install java
303303
sudo apt update -y && sudo apt install openjdk-11-jdk -y
304304

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ clean:
7878

7979
client: learning
8080
cd $(CLIENT_DIR) && \
81-
python3 -m pip install ${PIP_ARGS} "torch" "networkx<=3.0" --index-url https://download.pytorch.org/whl/cpu --user && \
81+
python3 -m pip install ${PIP_ARGS} "torch==1.13.1" "networkx<=3.0" --index-url https://download.pytorch.org/whl/cpu --user && \
8282
python3 -m pip install ${PIP_ARGS} -r requirements.txt -r requirements-dev.txt --user && \
8383
export PATH=$(PATH):$(HOME)/.local/bin && \
8484
python3 setup.py build_ext --inplace --user && \
@@ -90,7 +90,7 @@ client: learning
9090

9191
coordinator: client
9292
cd $(COORDINATOR_DIR) && \
93-
python3 -m pip install ${PIP_ARGS} "torch" "networkx<=3.0" --index-url https://download.pytorch.org/whl/cpu --user && \
93+
python3 -m pip install ${PIP_ARGS} "torch==1.13.1" "networkx<=3.0" --index-url https://download.pytorch.org/whl/cpu --user && \
9494
python3 -m pip install ${PIP_ARGS} -r requirements.txt -r requirements-dev.txt --user && \
9595
python3 setup.py build_builtin && \
9696
python3 -m pip install --user --editable $(COORDINATOR_DIR) && \
@@ -174,7 +174,7 @@ $(LEARNING_DIR)/graphlearn/built/lib/libgraphlearn_shared.$(SUFFIX):
174174

175175
prepare-client:
176176
cd $(CLIENT_DIR) && \
177-
pip3 install ${PIP_ARGS} "torch" "networkx<=3.0" --index-url https://download.pytorch.org/whl/cpu --user && \
177+
pip3 install ${PIP_ARGS} "torch==1.13.1" "networkx<=3.0" --index-url https://download.pytorch.org/whl/cpu --user && \
178178
pip3 install ${PIP_ARGS} -r requirements.txt --user && \
179179
pip3 install ${PIP_ARGS} -r requirements-dev.txt --user && \
180180
python3 setup.py build_proto

k8s/internal/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ graphscope-client-manylinux2014-py3-nodocker:
174174
cd $(WORKING_DIR)/../../python; \
175175
export PATH=/opt/python/$$py/bin:$$PATH; \
176176
python3 -m pip install ${PIP_ARGS} -U pip; \
177-
python3 -m pip install ${PIP_ARGS} "torch" --index-url https://download.pytorch.org/whl/cpu --user; \
177+
python3 -m pip install ${PIP_ARGS} "torch==1.13.1" --index-url https://download.pytorch.org/whl/cpu --user; \
178178
if [[ "$$py" == "cp311-cp311" ]]; then \
179179
if [[ "${ARCH}" == "aarch64" ]]; then \
180180
python3 -m pip install ${PIP_ARGS} grpcio==1.49.1 --no-binary grpcio; \
@@ -218,7 +218,7 @@ graphscope-client-manylinux2014-py3-nodocker:
218218

219219
graphscope-client-darwin-py3:
220220
cd $(WORKING_DIR)/../../python && \
221-
python3 -m pip install ${PIP_ARGS} "torch" "networkx<=3.0" --index-url https://download.pytorch.org/whl/cpu --user && \
221+
python3 -m pip install ${PIP_ARGS} "torch==1.13.1" "networkx<=3.0" --index-url https://download.pytorch.org/whl/cpu --user && \
222222
python3 -m pip install ${PIP_ARGS} -r requirements.txt -r requirements-dev.txt --user && \
223223
cd $(WORKING_DIR)/../../learning_engine/graph-learn && \
224224
(git submodule update --init third_party/pybind11 || true) && \

0 commit comments

Comments
 (0)