当我想通过使用"pip3安装--升级tensorflow“命令来安装tensorflow时,发生了一个错误:
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'C:\\Users\\User\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python37\\site-
我使用的是带有M1处理器的MacBook专业版,macOS版本11.0.1,PyCharm中的Python3.8,Tensorflow版本2.4.0rc4 (也尝试了2.3.0,2.3.1,2.4.0rc0)。我正在尝试运行以下代码:
import tensorflow
这会导致以下错误消息:
Process finished with exit code 132 (interrupted by signal 4: SIGILL)
代码在我的Windows和Linux机器上运行得很好。该错误消息是什么意思?我如何修复它?
我最近开始进入Tensorflow,但是我在安装上遇到了问题。每次我试图导入它时,我都会得到以下错误
>>> import tensorflow as tf
Traceback (most recent call last):
File "C:\Users\[user]\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 14, in swig_import_helper
ret
环境是Mac M1和miniforge Conda with python3.8。我已经完成了以下命令来安装tensorflow和tensorflow_hub: conda install -c apple tensorflow-deps
pip install tensorflow-macos
pip install tensorflow-metal
# tried all the conda commands here (https://anaconda.org/conda-forge/tensorflow-hub) and the following
pip install tens
我在导入Tensorflow-CPU时遇到一些问题。
当我导入import tensorflow as tf时,我得到这个错误
MYPC@MYPC-PC MINGW64 ~/Desktop
$ python
Python 3.5.4 (v3.5.4:3f56838, Aug 8 2017, 02:17:05) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>
我正在一个新的虚拟环境上安装tensorflow。当我试图安装tensorflow时,我会收到以下消息
Collecting tensorflow-gpu
Could not find a version that satisfies the requirement tensorflow-gpu (from
versions: )
No matching distribution found for tensorflow-gpu
我正在使用macOS yosemitie和python3.6
我试过以下几种方法:
用python3.5安装
到pypi,下载方向盘并在上使用pip
我遇到了一个带有Python1.4和Python3.6的,它通过这个RuntimeWarning表现出来
compiletime version 3.5 of module 'tensorflow.python.framework.fast_tensor_util'
does not match runtime version 3.6
我想通过按照当前的建议安装最新的tf-nightly和tf-nightly-gpu来克服这个问题。到目前为止,我在上安装了TensorFlow (在macOS上),如下所示:
virtualenv --system-site-packages
我先安装了python,然后安装了anaconda。当我试图从pip命令安装tensorflow时,我得到了这个错误。有人知道原因吗?
Microsoft Windows [Version 10.0.16299.98]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Windows\system32>pip install tensorflow.
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions:
我正在尝试安装Tensorflow对象检测API,遵循的步骤,这是Tensorflow 2的正式安装文档。
git clone https://github.com/tensorflow/models.git
> everything is ok
cd models/research/
> everything is ok
protoc object_detection/protos/*.proto --python_out=.
> everything is ok
cp object_detection/packages/tf2/setup.py .
> everyt
我刚刚更新了最新的MacOS,它清除了所有的东西。
我遵循中的步骤。
我开始用pip3重新安装tensorflow,它没有安装任何东西。
我在输入pip3 install --user --upgrade tensorflow时得到了这个错误。
ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)
ERROR: No matching distribution found for tensorflow
仅供参考,我的MacBook是64位的。和
~ pip3
我运行的是MacOS10.5 (Yosemite),我刚刚用python3.5设置了一个虚拟环境来玩一下tensorflow。virtualenv设置正确。但是,我无法安装tensorflow。我总是收到以下错误消息:
(tensorflow) Tom@MBP:~/tensorflow$ pip3 install --upgrade tensorflow
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching
如前所述,我在导入tensorflow时遇到了问题。下面是带有空闲的输出:
Python 3.7.6 (tags/v3.7.6:43364a7ae0, Dec 19 2019, 00:42:30) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> import tensorflow as tf
Traceback (most r
我一直试图导入TensorFlow,但是我一直收到这个错误。我已经浏览过很多聊天室,但由于某种原因,这些答案对我的系统没有作用,我是不是遗漏了什么。
import tensorflow as tf
RuntimeError Traceback (most recent call last)
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
-------------------------------------