Forums

FileNotFoundError - No usable temporary directory found in

I want to install tensorflow 2.6 (pip install --quiet tensorflow=2.6.0 ) in my env, because I get the error "ModuleNotFoundError: No module named 'tensorflow'".

I tried to put it into a log file, cause I got to much output and the console stops working, but that didn't work.

So I tried the --quiet, sadly still doesnt work.

When I try to, I get the error " File "/usr/lib/python3.8/tempfile.py", line 357, in _get_default_tempdir raise FileNotFoundError(_errno.ENOENT, FileNotFoundError: [Errno 2] No usable temporary directory found in ['/tmp', '/var/tmp', '/usr/tmp', '/home/lorenzostolk'] ".

Does someone know a fix?

By "in my env" do you mean virtual environment or just your account? See https://help.pythonanywhere.com/pages/InstallingNewModules/

How to resolve this ? Facing the same issue.

That's odd because you definitely have a /tmp right?

Dont know, but most probably it is present. Does it related to cache memory, because it occurred when I am running a script which reads large file like in GBs.

What is the exact error message that you're getting?