Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 安装turicreate时出现tensorflow错误?_Python_Tensorflow_Machine Learning_Turi Create_Coursera Api - Fatal编程技术网

Python 安装turicreate时出现tensorflow错误?

Python 安装turicreate时出现tensorflow错误?,python,tensorflow,machine-learning,turi-create,coursera-api,Python,Tensorflow,Machine Learning,Turi Create,Coursera Api,当我安装turicreate软件包时,会出现以下错误: Collecting tensorflow>=2.0.0 (from turicreate) Could not find a version that satisfies the requirement tensorflow>=2.0.0 (from turicreate) (from versions: 0.12.1, 1.0.0, 1.0.1, 1.1.0rc0, 1.1.0rc1, 1.1.0rc2, 1.1.0,

当我安装turicreate软件包时,会出现以下错误:

Collecting tensorflow>=2.0.0 (from turicreate)
  Could not find a version that satisfies the requirement tensorflow>=2.0.0 (from turicreate) (from versions: 0.12.1, 1.0.0, 1.0.1, 1.1.0rc0, 1.1.0rc1, 1.1.0rc2, 1.1.0, 1.2.0rc0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.3.0rc0, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.4.0rc0, 1.4.0rc1, 1.4.0, 1.4.1, 1.5.0rc0, 1.5.0rc1, 1.5.0, 1.5.1, 1.6.0rc0, 1.6.0rc1, 1.6.0, 1.7.0rc0, 1.7.0rc1, 1.7.0, 1.7.1, 1.8.0rc0, 1.8.0rc1, 1.8.0, 1.9.0rc0, 1.9.0rc1, 1.9.0rc2, 1.9.0, 1.10.0rc0, 1.10.0rc1, 1.10.0, 1.10.1, 1.11.0rc0, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.12.0rc0, 1.12.0rc1, 1.12.0rc2, 1.12.0, 1.12.2, 1.12.3, 1.13.0rc0, 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 2.0.0a0, 2.0.0b0, 2.0.0b1)
No matching distribution found for tensorflow>=2.0.0 (from turicreate)
我在安装tensorflow 2.0.0时遇到了同样的问题

我使用
pip3 install tensorflow==2.0.0a0
安装了tensorflow 2,并对版本进行了修改(在“2.0.0”之后添加了“a0”、“b0”、“b1”)。但是,即使安装了tensorflow2.0.0a0,我仍然无法通过turicreate的安装,并导致上述相同的“tensorflow错误”。 我使用的是python 3.6、numpy 1.16.5


你能帮我一下吗?

当我试图在Jupyter Docker映像上安装
turicreate
时,我遇到了同样的问题,该映像附带了一些加载的数据科学库:

  • 图片:
    jupyter/scipy笔记本
  • 软件包:pandas、numexpr、matplotlib、scipy、seaborn、scikit learn、scikit image、sympy、cython、patsy、statsmodel、cloudpickle、dill、numba、bokeh、sqlalchemy、hdf5、vincent、beautifulsoup、protobuf和xlrd软件包
  • 错误消息:

    Could not find a version that satisfies the requirement tensorflow>=2.0.0 (from turicreate) (from versions: 0.12.1, 1.0.0, 1.0.1, 1.1.0rc0, 1.1.0rc1, 1.1.0rc2, 1.1.0, 1.2.0rc0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.3.0rc0, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.4.0rc0, 1.4.0rc1, 1.4.0, 1.4.1, 1.5.0rc0, 1.5.0rc1, 1.5.0, 1.5.1, 1.6.0rc0, 1.6.0rc1, 1.6.0, 1.7.0rc0, 1.7.0rc1, 1.7.0, 1.7.1, 1.8.0rc0, 1.8.0rc1, 1.8.0, 1.9.0rc0, 1.9.0rc1, 1.9.0rc2, 1.9.0, 1.10.0rc0, 1.10.0rc1, 1.10.0, 1.10.1, 1.11.0rc0, 1.11.0rc1, 1.11.0rc2, 1.11.0, 1.12.0rc0, 1.12.0rc1, 1.12.0rc2, 1.12.0, 1.12.2, 1.12.3, 1.13.0rc0, 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 2.0.0a0, 2.0.0b0, 2.0.0b1)
    No matching distribution found for tensorflow>=2.0.0 (from turicreate)
    
然而,当我拍摄基本(剥离)Jupyter图像时,它起了作用:

  • 图片:
    jupyter/base笔记本
  • 包:git、emacs、jed、nano、tzdata和unzip
turicreate的安装说明:

from __future__ import print_function
import sys

!{sys.executable} -m pip install turicreate
输出:

Successfully installed absl-py-0.9.0 astor-0.8.1 cachetools-4.0.0 coremltools-3.1 gast-0.2.2 google-auth-1.10.0 google-auth-oauthlib-0.4.1 google-pasta-0.1.8 grpcio-1.26.0 h5py-2.10.0 keras-applications-1.0.8 keras-preprocessing-1.1.0 llvmlite-0.30.0 markdown-3.1.1 numba-0.46.0 numpy-1.16.4 opt-einsum-3.1.0 pandas-0.25.3 pillow-6.2.1 prettytable-0.7.2 protobuf-3.11.2 pyasn1-0.4.8 pyasn1-modules-0.2.7 pytz-2019.3 requests-oauthlib-1.3.0 resampy-0.2.1 rsa-4.0 scipy-1.4.1 tensorboard-2.0.2 tensorflow-2.0.0 tensorflow-estimator-2.0.1 termcolor-1.1.0 turicreate-6.0 werkzeug-0.16.0 wrapt-1.11.2
所以,我想问题在于,您在环境中安装的一些库与turicreate冲突。也许你应该尝试使用上面提到的Docker镜像,或者尝试创建一个虚拟环境,这样你就可以独立工作了(这个没有测试)

有关不同Docker图像的信息:

Turicreate安装说明,其中说明了虚拟环境:


首先,尝试使用最新版本的pip
pip3安装-U pip
,通常情况下,它的问题比以前少

否则,如果上述操作失败,您可以尝试运行
pip3安装--no-deps turicreate
来克服这个神秘的错误。 您需要手动安装依赖项。全部110人。 您可以使用以下内容生成它们的列表:

import os;
s = os.popen('pip3 freeze turicreate').read()
for q in [x.split('==')[0] for x in s.split('\n')]:
  os.system('echo {} >> t.tmp'.format(q)
然后,它们可以使用
pip安装-r t.tmp
安装,用于x in$(cat t.tmp);pip3是否安装$x;完成
我不确定与tensorflow或任何其他失败包相关的功能性是如何受此影响的,但我已经设法使用此方法获得了简单的sframes。
然后,我升级了pip和所有无法正常工作的LIB,安装后没有问题。

尝试升级pip。Tensorflow 2.0需要安装较新版本的pip。 就我个人而言,这起了作用

  • 升级pip
  • 已安装tf2.0
  • 已安装turicreate
  • 升级pip

    # On Linux or macOS:
    pip3 install -U pip
    
    # On Windows:
    python -m pip3 install -U pip
    
    安装turicreate

    pip3 install turicreate
    

    这将解决您的问题

    非常感谢,它在virtualenvI下运行,发现它与“pip安装”而不是“pip3安装”一起运行,这导致我可以使用python2而不是python3安装和导入turicreate。而“pip3安装”在新的虚拟环境下也会产生同样的错误。您好,您能帮助我吗,我没有得到您的答案这是最好的答案!