-
Notifications
You must be signed in to change notification settings - Fork 9
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
Error when trying to import tensorflow_text #2
Comments
This error is that you are running directly from the source folder of |
Well, it doesn't exclusively happen from that folder. If I
Everything seems to go okay during the install, so I'm confused as to why it's not being found... I see quite a few warnings during the build, like |
Okay, I got it. Not being super experienced with Python I didn't realize I had to do: Thanks again for the tutorial! |
I'm glad you solved your problem. Then, I'll add hints at your suggestion. |
CODE
ERROR
|
@stromal According to the tag you did not build an |
Thank you @sun1638650145 for your tutorial - I am new to python and ML and struggle to import/run tensorflow-text on my M1 macOS. I followed all the steps (no problem so far) until step 7 :
I tried to replace ./*.whl by 'tensorflow_text-2.9.0-cp38-cp38-macosx_10_9_x86_64.whl' or 'tensorflow_text-2.8.2-cp39-cp39-macosx_11_0_arm64.whl' to see if it would find something.
I guess that I need to download a 'tensorflow-text.whl' file before doing the pip install ./*.whl but don't know where to find it. ### Could you please provide more details for the last STEP 7 ? |
First off, thanks for writing this tutorial!
The process seemed to go okay, but I'm getting an error when trying to import
tensorflow_text
in python:It seems like a problem with the install.
I tried re-launching my shell session, but then I just get a
ModuleNotFoundError: No module named 'tensorflow_text'
, as if it was never installed. Any idea what might be going on? Is there somewhere in particular I should run thebazel
andtext
installs?PS -- I'm running macOS 12.3, Xcode 13.2.1, on a 16" MacBook Pro M1 Pro.
The text was updated successfully, but these errors were encountered: