-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to install Ctranslate2 without Docker #194
Comments
Hi, If you plan to use the Python API, you can simply run For other use cases, the Dockerfiles specify how to install the dependencies and how to compile the project. A basic CPU build is also described in the README. What errors did you get? |
These are the logs: |
I'm interested in the GPU part not CPU. Therefore, doing pip install is not an option I considered. |
What is your Intel MKL version? |
I'd like to have the CPU option too. I case GPU is not available. This is what I do: MKL_VERSION=2020 |
The lines referenced in the error log do not seem to match the file If you don't need CPU execution at all, you can also disable Intel MKL using these flags during CMake configuration: |
I'm sorry but I'm afraid I can't go any further configuring MKL with the right version
|
Can you add |
This is the log
|
I can only think that you installed Intel MKL in the past and its installation was not correctly updated. I suggest removing Intel MKL and installing it again from https://software.intel.com/content/www/us/en/develop/tools/math-kernel-library.html. |
That was the issue! I reinstalled INtel MKL and it succesfully compiled.
https://forums.developer.nvidia.com/t/cublas-for-10-1-is-missing/71015 |
The package is |
Thanks! It worked! One last thing... I want to install Ctranslate for Python3.6. This is my code
However this seems to build it for Python3.5, which results in this error:
|
The pattern |
cp35 is the only file available. It does not find cp36 |
So you did not run the same script you shared above? Because this line: python3.6 setup.py bdist_wheel should build a wheel for Python 3.6, not 3.5. The rule is to use the same Python version for building and installing the package. |
Got it! There was a conflict with a previous installation. |
Hi,
|
This means the Python module is unable to load the compiled extension. Can you run the following in a Python interpreter and check the error? from ctranslate2 import translator |
I've done this before
|
Did you install CTranslate2 in this location? If not, you should update the path. |
Yes. That's the installation directory. The log says: But it seems it's not getting installed |
You should find where |
There was a bug in my script which was writting some file in another directory. |
Hi,
I'd like to install the Ctranslate2 module without using a Docker. Is it possible?
Are there any scripts for this? I've tried generating a shell script from the dockerfile but it gives me some errors.
Thanks
The text was updated successfully, but these errors were encountered: