安装tensorflow需要多少空间?

2024-04-25 23:03:36 发布

您现在位置:Python中文网/ 问答频道 /正文

我正试图从一个jupyter笔记本运行pip install tensorflow(尝试用cmd运行它会产生一个更奇怪的error),我的可用磁盘空间(目前还剩1.2GB)在安装过程中似乎会减少,然后我会看到[Errno 28] No space left on device。然后它又回到原来的样子


Tags: installpipnocmd过程tensorflow笔记本jupyter
1条回答
网友
1楼 · 发布于 2024-04-25 23:03:36

这肯定会有助于使用pip安装和生成:

pip install cache-dir=/data/jimit/ build /data/jimit/ tensorflow-gpu TMPDIR==/data/jimit/

它所做的是:

pip downloads files to temporary directory, environment variable TMPDIR specifies that directory, also pip puts files into cache thus cache-dir specification, no-cache-dir should work too. build specifies directory where wheel will be built, so its specification is also useful.

请注意:/data/jimit是目录,因此请根据您的喜好命名它

相关问题 更多 >