无法在Ubuntu 18.04 Python 3.7.3中安装turicreate

时间:2019-07-16 09:24:52

标签: python python-3.x ubuntu-18.04

正在运行“ pip install turicreate”,但出现错误。

Python 3.7.3 Ubuntu 18.04

pip install turicreate

Collecting turicreate
  Using cached https://files.pythonhosted.org/packages/db/54/167837569bcb816b3fe68f003f18d07ab9d5ac31b2b12b8f9b07b1ccc7a4/turicreate-4.2.tar.gz
Building wheels for collected packages: turicreate
  Building wheel for turicreate (setup.py) ... error
  Complete output from command /venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-b9l56kf5/turicreate/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-2550m_rm --python-tag cp37:
  running bdist_wheel
  running build
  installing to build/bdist.linux-x86_64/wheel
  running install


          ==================================================================================
          ERROR

          If you see this message, pip install did not find an available binary package
          for your system. Supported platforms are:

          * Linux x86_64 (including WSL on Windows 10).
          * macOS 10.12+ x86_64.
          * Python 2.7, 3.5, or 3.6.

          Other possible causes of this error are:

          * Outdated pip version (try `pip install -U pip`).

          ==================================================================================



  ----------------------------------------
  Failed building wheel for turicreate
  Running setup.py clean for turicreate
Failed to build turicreate
Installing collected packages: turicreate
  Running setup.py install for turicreate ... error
    Complete output from command /venv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-b9l56kf5/turicreate/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-3rpmjewn/install-record.txt --single-version-externally-managed --compile --install-headers /venv/include/site/python3.7/turicreate:
    running install


            ==================================================================================
            ERROR

            If you see this message, pip install did not find an available binary package
            for your system. Supported platforms are:

            * Linux x86_64 (including WSL on Windows 10).
            * macOS 10.12+ x86_64.
            * Python 2.7, 3.5, or 3.6.

            Other possible causes of this error are:

            * Outdated pip version (try `pip install -U pip`).

            ==================================================================================

1 个答案:

答案 0 :(得分:-1)

对于python 3.7,您应该使用pip3

python 2.7

python file_name.py
pip install "module name"  

python 3.7

python3 file_name.py
pip3 install "module name"