Install ctranslate2 wheel from gpu docker image

when I extract the ctranslate2 wheel from gpu docker image then move it to other machine and install. it encountered an error when i start server:
AttributeError: module ‘ctranslate2’ has no attribute ‘Translator’

Did you set LD_LIBRARY_PATH as shown in the post below?

I set export LD_LIBRARY_PATH=/opt/algorithm/ctranslate2/lib.
I copy ctranslate2 folder(from gpu docker image) to another machine.
The files in this folder are as follows:
bin
ctranslate2*.whl
ctranslate2*.tar.gz
include
install_requirments.txt
lib64
i set the envrionment variable LD_LIBRARY_PATH to this lib64?

i still encountered an error
AttributeError: module ‘ctranslate2’ has no attribute ‘Translator’

Looks like you picked up the CentOS 7 image, so yes.

i set the envrionment variable LD_LIBRARY_PATH=/opt/algorithm/ctranslate2/lib64 .
i still encountered an error
AttributeError: module ‘ctranslate2’ has no attribute ‘Translator’

What’s your Python version?

3.8 or 3.7

The Python wheel included in the Docker image is for Python 3.6. You can rebuild it from ctranslate2-*.tar.gz to target another Python version but that is more work.

If you are not familiar with Python wheels, the easiest for you is to update your GPU driver to >= 418.39 and install the package from PyPI:

pip install ctranslate2

all right, thanks~
I am not familiar with Python wheels and our production environment not support GPU driver >=418.39. I donn’t know how to do it~ :joy:

I have no idea to do it and the project is very urgent. I need the python wheel with cuda10.0 and python3.7.
if you could help me, I will be very grateful. could you give me your email?

Go to this page: Build CUDA 10.0 wheels · guillaumekln/CTranslate2@9f07b22 · GitHub

Then click on “Artifacts” and download “python-wheels”. The ZIP archive contains Python wheels with CUDA 10.0.

Thank you very much!