tensorflow - TensorFlow.js 无法在 Windows 10 中安装
问题描述
我尝试使用命令(pip install tensorflowjs)在 Windows 10 的终端中安装 tensorflow.js,但它显示如下错误:
C:\Users\GOT>pip install tensorflowjs
Requirement already satisfied: tensorflowjs in c:\users\got\appdata\local\programs\python\python36\lib\site-packages (1.0.1)
Collecting keras==2.2.4 (from tensorflowjs)
Using cached https://files.pythonhosted.org/packages/5e/10/aa32dad071ce52b5502266b5c659451cfd6ffcbf14e6c8c4f16c0ff5aaab/Keras-2.2.4-py2.py3-none-any.whl
Collecting tensorflow-hub==0.3.0 (from tensorflowjs)
Using cached https://files.pythonhosted.org/packages/9e/f0/3a3ced04c8359e562f1b91918d9bde797c8a916fcfeddc8dc5d673d1be20/tensorflow_hub-0.3.0-py2.py3-none-any.whl
Collecting numpy==1.15.1 (from tensorflowjs)
Using cached https://files.pythonhosted.org/packages/fb/7d/f8b97d97809f184d90faf320fa8e2e7eac994844c5e6c57adbed1283e9e9/numpy-1.15.1-cp36-none-win_amd64.whl
Collecting h5py==2.8.0 (from tensorflowjs)
Using cached https://files.pythonhosted.org/packages/12/6c/00c38c5ce9322f1cc421d93217c44739646a106c61859622eccc297a5c05/h5py-2.8.0-cp36-cp36m-win_amd64.whl
Collecting tf-nightly-2.0-preview>=2.0.0.dev20190304 (from tensorflowjs)
Using cached https://files.pythonhosted.org/packages/74/b4/a891925420b003a1da4edf6281672ecebb51b1ee2136e8a15140c8c2b408/tf_nightly_2.0_preview-2.0.0.dev20190430-cp36-cp36m-win_amd64.whl
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\\Users\\GOT\\AppData\\Local\\Temp\\pip-install-fjjm7m_r\\tf-nightly-2.0-preview\\tf_nightly_2.0_preview-2.0.0.dev20190430.data/purelib/tensorflow/include/tensorflow/include/external/eigen_archive/unsupported/Eigen/CXX11/src/Tensor/TensorSyclConvertToDeviceExpression.h'
我试图从终端再次安装 tensorflow,但它仍然是同样的问题。
我正在使用这些依赖项:Python:3.6.8 Tensorflow:1.13.1 Keras:2.2.2
这个问题的解决方案是什么?
解决方案
看起来像一个路径长度问题。谷歌的第一个条目见这里
推荐阅读
- django - 来自数据库的查询结果在分页上消失:Django
- intellij-idea - 如何在 Thymeleaf 链接标签中转义“@”字符?
- python-3.x - docker run not working:尽管制作了容器映像,但没有创建容器
- html - Django - CSS 文件未正确链接到模板
- autodesk-forge - 出现错误 - 同时具有节点子节点和片段子节点的节点!平面存储不支持
- rust - 如何将结构引用存储在 vec 中并稍后在其他地方使用该结构?
- matlab - 无法满足 fmincon 中的积分容差以解决 ODE 优化问题
- webpack - Webpack 在 css 和 html 中的相对路径错误
- html - 使用 CSS 在另一个容器中居中绝对容器
- android - 试图存储 mutableListOf
到 SharedPreferences 但不能设置默认值