安装tensorflow需要多少空间? [英] How much space is necessary to install tensorflow?

查看:245
本文介绍了安装tensorflow需要多少空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从 jupyter笔记本运行 pip install tensorflow (尝试使用 cmd 给出一个陌生人错误),安装时我的可用磁盘空间(当前剩余1.2 GB)似乎减少了,然后显示 [Errno 28]设备上没有剩余空间.然后回到原来的状态.

I'm trying to run pip install tensorflow from a jupyter notebook (trying to run it with cmd gives out an even stranger error), and my free disk space (currently 1.2 GB left) seems to dwindle during installation and then I'm presented with [Errno 28] No space left on device. Then it goes back to what it was.

推荐答案

这肯定会有助于使用pip安装和构建:

This will certainly help using pip install and build:

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

它的作用是:

pip将文件下载到环境变量的临时目录中TMPDIR指定该目录,并且也将文件放入缓存中,从而--cache-dir规范,--no-cache-dir也应该起作用.--build指定将在其中构建wheel的目录,因此其规格为也有用.

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是目录,因此请根据您的喜好命名.

Please Note: /data/jimit are directory so please name it according to your preferences.

这篇关于安装tensorflow需要多少空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆