Amazon ec2 在AmazonEC2Ubuntu上安装numba

Amazon ec2 在AmazonEC2Ubuntu上安装numba,amazon-ec2,numba,llvmlite,Amazon Ec2,Numba,Llvmlite,我想将numba模块安装到AWS ec2 ubuntu实例(免费的tier one)上。尽管其他型号似乎可以工作,但numba在安装时遇到了问题。我已将错误消息粘贴到下面。我在这里很不称职,所以任何帮助解决这个问题的人都将不胜感激 ubuntu@ip-172-31-21-188:~/panel_sim$ pip install numba Collecting numba Using cached https://files.pythonhosted.org/packages/8

我想将numba模块安装到AWS ec2 ubuntu实例(免费的tier one)上。尽管其他型号似乎可以工作,但numba在安装时遇到了问题。我已将错误消息粘贴到下面。我在这里很不称职,所以任何帮助解决这个问题的人都将不胜感激

      ubuntu@ip-172-31-21-188:~/panel_sim$ pip install numba
Collecting numba
  Using cached https://files.pythonhosted.org/packages/83/f2/938d6b0e6b0be158d7beb7cc6067243783d219e8e0a7474bbe69d0fb5472/numba-0.47.0-cp27-cp27mu-manylinux1_x86_64.whl
Collecting numpy (from numba)
  Using cached https://files.pythonhosted.org/packages/3a/5f/47e578b3ae79e2624e205445ab77a1848acdaa2929a00eeef6b16eaaeb20/numpy-1.16.6-cp27-cp27mu-manylinux1_x86_64.whl
Collecting setuptools (from numba)
  Using cached https://files.pythonhosted.org/packages/e1/b7/182161210a13158cd3ccc41ee19aadef54496b74f2817cc147006ec932b4/setuptools-44.1.1-py2.py3-none-any.whl
Collecting llvmlite>=0.31.0dev0 (from numba)
  Using cached https://files.pythonhosted.org/packages/50/cc/04526507e80d546be5688ce0246e40277b61e7949c3347c6609b6a4154cf/llvmlite-0.32.1.tar.gz
Collecting funcsigs; python_version < "3.3" (from numba)
  Using cached https://files.pythonhosted.org/packages/69/cb/f5be453359271714c01b9bd06126eaf2e368f1fddfff30818754b5ac2328/funcsigs-1.0.2-py2.py3-none-any.whl
Collecting singledispatch; python_version < "3.4" (from numba)
  Using cached https://files.pythonhosted.org/packages/c5/10/369f50bcd4621b263927b0a1519987a04383d4a98fb10438042ad410cf88/singledispatch-3.4.0.3-py2.py3-none-any.whl
Collecting enum34; python_version < "3.4" (from numba)
  Using cached https://files.pythonhosted.org/packages/6f/2c/a9386903ece2ea85e9807e0e062174dc26fdce8b05f216d00491be29fad5/enum34-1.1.10-py2-none-any.whl
Collecting six (from singledispatch; python_version < "3.4"->numba)
  Using cached https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl
Building wheels for collected packages: llvmlite
  Running setup.py bdist_wheel for llvmlite ... error
  Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-1Jivcg/llvmlite/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/tmpuSf3tUpip-wheel- --python-tag cp27:
  running bdist_wheel
  /usr/bin/python /tmp/pip-build-1Jivcg/llvmlite/ffi/build.py
    File "/tmp/pip-build-1Jivcg/llvmlite/ffi/build.py", line 122
      raise ValueError(msg.format(_ver_check_skip)) from e
                                                       ^
  SyntaxError: invalid syntax
  error: command '/usr/bin/python' failed with exit status 1

  ----------------------------------------
  Failed building wheel for llvmlite
  Running setup.py clean for llvmlite
Failed to build llvmlite
Installing collected packages: numpy, setuptools, llvmlite, funcsigs, six, singledispatch, enum34, numba
  Running setup.py install for llvmlite ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-1Jivcg/llvmlite/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-VwINe_-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
    running install
    running build
    got version from file /tmp/pip-build-1Jivcg/llvmlite/llvmlite/_version.py {'version': '0.32.1', 'full': 'aa11b129c0b55973067422397821ae6d44fa5e70'}
    running build_ext
    /usr/bin/python /tmp/pip-build-1Jivcg/llvmlite/ffi/build.py
      File "/tmp/pip-build-1Jivcg/llvmlite/ffi/build.py", line 122
        raise ValueError(msg.format(_ver_check_skip)) from e
                                                         ^
    SyntaxError: invalid syntax
    error: command '/usr/bin/python' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-1Jivcg/llvmlite/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-VwINe_-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-1Jivcg/llvmlite/
ubuntu@ip-172-31-21-188:~/panel_sim$pip安装numba
收集麻木
使用缓存https://files.pythonhosted.org/packages/83/f2/938d6b0e6b0be158d7beb7cc6067243783d219e8e0a7474bbe69d0fb5472/numba-0.47.0-cp27-cp27mu-manylinux1_x86_64.whl
收集numpy(来自numba)
使用缓存https://files.pythonhosted.org/packages/3a/5f/47e578b3ae79e2624e205445ab77a1848acdaa2929a00eeef6b16eaaeb20/numpy-1.16.6-cp27-cp27mu-manylinux1_x86_64.whl
收集设置工具(来自numba)
使用缓存https://files.pythonhosted.org/packages/e1/b7/182161210a13158cd3ccc41ee19aadef54496b74f2817cc147006ec932b4/setuptools-44.1.1-py2.py3-none-any.whl
收集llvmlite>=0.31.0dev0(来自numba)
使用缓存https://files.pythonhosted.org/packages/50/cc/04526507e80d546be5688ce0246e40277b61e7949c3347c6609b6a4154cf/llvmlite-0.32.1.tar.gz
收集功能;python_版本<“3.3”(来自numba)
使用缓存https://files.pythonhosted.org/packages/69/cb/f5be453359271714c01b9bd06126eaf2e368f1fddfff30818754b5ac2328/funcsigs-1.0.2-py2.py3-none-any.whl
收集和发送;python_版本<“3.4”(来自numba)
使用缓存https://files.pythonhosted.org/packages/c5/10/369f50bcd4621b263927b0a1519987a04383d4a98fb10438042ad410cf88/singledispatch-3.4.0.3-py2.py3-none-any.whl
收集样本34份;python_版本<“3.4”(来自numba)
使用缓存https://files.pythonhosted.org/packages/6f/2c/a9386903ece2ea85e9807e0e062174dc26fdce8b05f216d00491be29fad5/enum34-1.1.10-py2-none-any.whl
收集六个(来自singledispatch;python_版本<“3.4”->numba)
使用缓存https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl
为收集的包构建控制盘:llvmlite
正在运行llvmlite的setup.py bdist_控制盘。。。错误
从命令/usr/bin/python-u-c“import setuptools,tokenize;uuu file uuu=”/tmp/pip-build-1Jivcg/llvmlite/setup.py';f=getattr(tokenize,'open',open)(uuuu文件u);code=f.read().replace('\r\n','\n');f.close();exec(compile(code,uu文件u,'exec'))“bdist u-pusd/tmp/tmf3tupip-cp27:
运转的车轮
/usr/bin/python/tmp/pip-build-1Jivcg/llvmlite/ffi/build.py
文件“/tmp/pip-build-1Jivcg/llvmlite/ffi/build.py”,第122行
从e中引发值错误(消息格式(\u ver\u check\u skip))
^
SyntaxError:无效语法
错误:命令“/usr/bin/python”失败,退出状态为1
----------------------------------------
为llvmlite生成控制盘失败
为llvmlite运行setup.py clean
未能生成llvmlite
安装收集的软件包:numpy、setuptools、llvmlite、funcsigs、six、singledispatch、enum34、numba
正在运行llvmlite的setup.py安装。。。错误
从命令/usr/bin/python-u-c“import setuptools,tokenize;uuu file_uuu=”/tmp/pip-build-1Jivcg/llvmlite/setup.py';f=getattr(tokenize,'open',open)(uuu文件uu);code=f.read().replace('\r\n','\n');f.close();exec(compile(code,'uu文件uu,'exec'))”install--record/tmp/pip-VwINe_389;-record/install-record.txt--外部管理的单一版本--编译--用户--前缀=:
正在运行的安装
运行构建
从文件/tmp/pip-build-1Jivcg/llvmlite/llvmlite/_version.py获取版本{'version':'0.32.1','full':'aa11b129c0b5597067423978221ae6d44fa5e70'}
运行build_ext
/usr/bin/python/tmp/pip-build-1Jivcg/llvmlite/ffi/build.py
文件“/tmp/pip-build-1Jivcg/llvmlite/ffi/build.py”,第122行
从e中引发值错误(消息格式(\u ver\u check\u skip))
^
SyntaxError:无效语法
错误:命令“/usr/bin/python”失败,退出状态为1
----------------------------------------
命令“/usr/bin/python-u-c”导入setuptools,标记化__文件\ \='/tmp/pip-build-1Jivcg/llvmlite/setup.py';f=getattr(标记化“打开”,打开)(_文件);code=f.read().replace('\r\n','\n');f、 close();exec(compile(code,_ufile,_uu,_uu,_uu,'exec'))“安装--record/tmp/pip-VwINe u--record/install-record.txt--外部管理的单一版本--编译--user--prefix=”失败,错误代码为/tmp/pip-build-1Jivcg/llvmlite中的1/
您应该通过升级pip

pip install --upgrade pip
那就试试你的命令

pip install numba
您应该通过升级pip

pip install --upgrade pip
那就试试你的命令

pip install numba