OSError: libmkl_intel_lp64.so.1: cannot open shared object file: No such file or directory
OSError: libmkl_intel_lp64.so.1: cannot open shared object file: No such file or directory
我正在尝试 运行 colab notebook 中给出的 TPU 模型。该模型工作正常,但今天我无法 运行 该模型。
我用下面的代码安装了pytorch-xla。
VERSION = "nightly" #@param ["1.5" , "20200325", "nightly"]
!curl https://raw.githubusercontent.com/pytorch/xla/master/contrib/scripts/env-setup.py -o pytorch-xla-env-setup.py
!python pytorch-xla-env-setup.py --version $VERSION
我尝试如下安装所需的库:
!pip install -U nlp
!pip install sentencepiece
!pip install numpy --upgrade
但是,当我尝试以下操作时
import nlp
它给出了以下错误:
OSError: libmkl_intel_lp64.so.1: cannot open shared object file: No such file or directory
我搜索了错误并尝试了以下方法,但仍然不起作用。任何想法如何解决它?注:前几天还可以,今天不行了。
!pip install mkl
#!export PATH="$PATH:/opt/intel/bin"
#!export LD_LIBRARY_PATH="$PATH:opt/intel/mkl/lib/intel64_lin/"
!export LID_LIBRAEY_PATH="$LID_LIBRARY_PATH:/opt/intel/mkl/lib/intel64_lin/"
import os
os.environ['LD_LIBRARY_PATH']='/usr/local/lib'
!echo $LD_LIBRARY_PATH
!sudo ln -s /usr/local/lib/libmkl_intel_lp64.so /usr/local/lib/libmkl_intel_lp64.so.1
!sudo ln -s /usr/local/lib/libmkl_intel_thread.so /usr/local/lib/libmkl_intel_thread.so.1
!sudo ln -s /usr/local/lib/libmkl_core.so /usr/local/lib/libmkl_core.so.1
!ldconfig
!ldd /usr/local/lib/python3.7/dist-packages/torch/lib/libtorch.so
对我有用。我们也会尝试在内部解决这个问题。
我正在尝试 运行 colab notebook 中给出的 TPU 模型。该模型工作正常,但今天我无法 运行 该模型。
我用下面的代码安装了pytorch-xla。
VERSION = "nightly" #@param ["1.5" , "20200325", "nightly"]
!curl https://raw.githubusercontent.com/pytorch/xla/master/contrib/scripts/env-setup.py -o pytorch-xla-env-setup.py
!python pytorch-xla-env-setup.py --version $VERSION
我尝试如下安装所需的库:
!pip install -U nlp
!pip install sentencepiece
!pip install numpy --upgrade
但是,当我尝试以下操作时
import nlp
它给出了以下错误:
OSError: libmkl_intel_lp64.so.1: cannot open shared object file: No such file or directory
我搜索了错误并尝试了以下方法,但仍然不起作用。任何想法如何解决它?注:前几天还可以,今天不行了。
!pip install mkl
#!export PATH="$PATH:/opt/intel/bin"
#!export LD_LIBRARY_PATH="$PATH:opt/intel/mkl/lib/intel64_lin/"
!export LID_LIBRAEY_PATH="$LID_LIBRARY_PATH:/opt/intel/mkl/lib/intel64_lin/"
import os
os.environ['LD_LIBRARY_PATH']='/usr/local/lib'
!echo $LD_LIBRARY_PATH
!sudo ln -s /usr/local/lib/libmkl_intel_lp64.so /usr/local/lib/libmkl_intel_lp64.so.1
!sudo ln -s /usr/local/lib/libmkl_intel_thread.so /usr/local/lib/libmkl_intel_thread.so.1
!sudo ln -s /usr/local/lib/libmkl_core.so /usr/local/lib/libmkl_core.so.1
!ldconfig
!ldd /usr/local/lib/python3.7/dist-packages/torch/lib/libtorch.so
对我有用。我们也会尝试在内部解决这个问题。