Forums

Upgrading TensorFlow fails?

I'm trying to upgrade my TensorFlow to get it working with Transformers in Python3.7, but I keep getting a "Your console is printing so much that it's interfering with other users, so it has been closed." error. Is there any other way to get to a newer version of TensorFlow on PythonAnywhere? Trying to run my .py script currently throws an "AttributeError: module 'tensorflow_core.keras.activations' has no attribute 'swish'". Is there something else I can do?

Just redirect the output to a file:

<command to install>  > output.txt

Ok. That seems to have gotten it farther along in the process, but now it's taking up the disk space (not in /tmp/) and still isn't updated, so I can't find it to delete and free back the space it's taking.

Alright, I found it in my pip cache, but it's still not upgraded.

pip removes the files that it created when the install fails, so there is nothing left to delete. If you're running out of space when you install, then you will need more space for your account.

Got it. Thanks! I have upgraded the space on my account to account for the new needs. Prosit

Glad to hear that you made it work!