Skip to content

Commit 57a5a74

Browse files
committed
Use getsitepackages()
1 parent e46f1be commit 57a5a74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docker/install/ubuntu_install_caffe.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,5 @@ cd / && rm -rf /caffe_src
6565

6666
PYCAFFE_ROOT=${CAFFE_HOME}/python
6767
echo "${CAFFE_HOME}/lib" >> /etc/ld.so.conf.d/caffe.conf && ldconfig
68-
ln -s ${PYCAFFE_ROOT}/caffe "${TVM_VENV}/usr/local/lib/python3.7/dist-packages/caffe"
68+
site_packages=$("${TVM_VENV}/bin/python3" -c 'import site; print(site.getsitepackages()[0])')
69+
ln -s ${PYCAFFE_ROOT}/caffe "${site_packages}/caffe"

0 commit comments

Comments
 (0)