我试图使用pip命令在qthon中安装tensorflow作为pip install tensorflow
,但不幸的是,我收到以下错误:Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow
我也尝试使用以下命令pip install --upgrade
https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl
安装tensorflow,但再次面临以下错误:tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform
。另外,我已经针对Python版本3.5x 3.6x检查了相同的命令,显然也是3.7,但是这些命令不起作用。
我认为Tensorflow目前不支持Python 3.7,如果你当前安装了Python 3.7,这可能是错误消息的原因Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow
您可以降级到Python 3.6.x并使用pip安装tensorflow。
你确定你正确地大写/拼写吗?命令提示符区分大小写。我使用的输入是:cd C:\path\to\the\directory\python\is\installed\in
(cd,space,目录的路径)然后:python -m pip install TensorFlow
它应该在之后工作。
在命令行上键入(如果您使用的是GPU版本)
pip install -U --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-1.0.0-cp35-cp35m-win_amd64.whl
或者如果您只使用CPU
pip install -U --ignore-installed --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0-cp35-cp35m-win_amd64.whl