-
Notifications
You must be signed in to change notification settings - Fork 347
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
CPU installation #547
Comments
Install tensorflow-cpu again after installing tensorflow-text. This is the same issue as #195 (though the default tensorflow has changed). Unfortunately, I do not believe there is a way to not uninstall tensorflow-cpu due to the limitations of pip, so you just need to manually install it again after. |
Thanks @broken. Whenever 'there is no way', one must needs try. With these requirements.txt:
and constraints.txt (note the "cpu" in the url):
installing with
seems to settle for the CPU version right away. Perhaps there is a more elegant way (i.e. url-free). |
Great! I'll keep this constraints trick in mind when asked this question in the future. Ultimately, I would love for this to be automatic. So when anybody ran |
For future reference, the same trick seems to work also without a constraints file, since specifying a wheel location using
|
I'm installing as follows:
But the last install also installs
tensorflow<2.5,>=2.4.0
, which I don't want. How can I stick to the CPU version?The text was updated successfully, but these errors were encountered: