【问题标题】:Why i cannot import numba.cuda.random this module?为什么我不能导入 numba.cuda.random 这个模块?
【发布时间】:2019-07-20 17:28:48
【问题描述】:

我正在尝试导入一些我之前安装过的模块。但是会发生错误,说没有名为“numba.cuda.random”的模块

import math
import numpy as np
import multiprocessing 
import numba as nb
from numba import cuda
import random
import os

from numba.cuda.random import create_xoroshiro128p_states

前7行全部正常,但最后一行报错如下:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named 'numba.cuda.random'

【问题讨论】:

    标签: python-3.x numba


    【解决方案1】:

    升级numba后,就可以了!

    pip install numba --upgrade

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-10-20
      • 1970-01-01
      • 1970-01-01
      • 2022-12-04
      • 1970-01-01
      • 2015-11-28
      • 2020-09-03
      相关资源
      最近更新 更多