princeton-ddss / SpeechMLPipeline

SpeechMLPipeline is a complete pipeline to deploy Machine Learning Models to generate labelled and timestamped transcripts from audio inputs
MIT License
0 stars 1 forks source link

Torch Import Error #8

Closed fjying closed 1 year ago

fjying commented 1 year ago

import torch Traceback (most recent call last): File "", line 1, in File "/drives/drive1/home/jf3375/.conda/envs/njfs2/lib/python3.10/site-packages/torch/init.py", line 229, in from torch._C import * # noqa: F403 ImportError: libcupti.so.11.7: cannot open shared object file: No such file or directory

fjying commented 1 year ago

Since torch is installed via Pypi Package Wheel File offline, Conda Environment is not compatiable with the instalaltion. The issue is resolved by installing torch on the Virtualenv Environment.

Refer to the PyTorch Installation Documentation: https://pytorch.org/get-started/locally/ The installation differs between Pip and Conda.