E:\Python3.7\lib\site-packages\urllib3\util\selectors.py:14: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' i
s deprecated, and in 3.8 it will stop working
from collections import namedtuple, Mapping
E:\Python3.7\lib\site-packages\urllib3\_collections.py:2: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is d
eprecated, and in 3.8 it will stop working
from collections import Mapping, MutableMapping
E:\Python3.7\lib\site-packages\setuptools\depends.py:2: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for
alternative uses
import imp
Traceback (most recent call last):
File "test.py", line 1, in
import paddlehub
File "E:\Python3.7\lib\site-packages\paddlehub\__init__.py", line 31, in
from paddlehub import datasets
File "E:\Python3.7\lib\site-packages\paddlehub\datasets\__init__.py", line 16, in
from paddlehub.datasets.chnsenticorp import ChnSentiCorp
File "E:\Python3.7\lib\site-packages\paddlehub\datasets\chnsenticorp.py", line 19, in
from paddlehub.datasets.base_nlp_dataset import TextClassificationDataset
File "E:\Python3.7\lib\site-packages\paddlehub\datasets\base_nlp_dataset.py", line 21, in
import paddlenlp
File "E:\Python3.7\lib\site-packages\paddlenlp\__init__.py", line 20, in
from . import ops
File "E:\Python3.7\lib\site-packages\paddlenlp\ops\__init__.py", line 15, in
from .transformer.decoding import *
File "E:\Python3.7\lib\site-packages\paddlenlp\ops\transformer\decoding.py", line 24, in
from paddlenlp.ops.ext_utils import load
File "E:\Python3.7\lib\site-packages\paddlenlp\ops\ext_utils.py", line 19, in
if not os.path.exists(CUDA_HOME):
File "E:\Python3.7\lib\genericpath.py", line 19, in exists
os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
最后这一个错误TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType不知道是什么原因 ,求大佬帮助
paddlehub版本2.1.0 paddlepaddle版本2.1.0
能提供一下相关代码吗