OpenNMT Forum

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.