当前你编译后的版本里,有一个.pyd的文件,_jieba_fast_functions_py3.cp35-win_amd64.pyd
如果这样原样放到site-package下面的话,import时候会报错:
“”“
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\7q\Anaconda3\lib\site-packages\jieba_fast__init.py", line 16, in
from . import finalseg
File "C:\Users\7q\Anaconda3\lib\site-packages\jieba_fast\finalseg__init.py", line 12, in
import _jieba_fast_functions_py3 as _jieba_fast_functions
ModuleNotFoundError: No module named '_jieba_fast_functions_py3'
”“”
将文件名改为: _jieba_fast_functions_py3.pyd之后再次尝试import
此时报错:
“”“
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\7q\Anaconda3\lib\site-packages\jieba_fast\init__.py", line 16, in
from . import finalseg
File "C:\Users\7q\Anaconda3\lib\site-packages\jieba_fast\finalseg\init__.py", line 12, in
import _jieba_fast_functions_py3 as _jieba_fast_functions
ImportError: DLL load failed: 找不到指定的模块。
”“”
我不太熟悉这种安装方式,以前都是偷懒anaconda的方法,是否是我操作出了问题?还是windows版本的问题
当前你编译后的版本里,有一个.pyd的文件,_jieba_fast_functions_py3.cp35-win_amd64.pyd 如果这样原样放到site-package下面的话,import时候会报错: “”“ Traceback (most recent call last): File "", line 1, in
File "C:\Users\7q\Anaconda3\lib\site-packages\jieba_fast__init.py", line 16, in
from . import finalseg
File "C:\Users\7q\Anaconda3\lib\site-packages\jieba_fast\finalseg__init.py", line 12, in
import _jieba_fast_functions_py3 as _jieba_fast_functions
ModuleNotFoundError: No module named '_jieba_fast_functions_py3'
”“”
将文件名改为: _jieba_fast_functions_py3.pyd之后再次尝试import
此时报错:
“”“
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\7q\Anaconda3\lib\site-packages\jieba_fast\ init__.py", line 16, in
from . import finalseg
File "C:\Users\7q\Anaconda3\lib\site-packages\jieba_fast\finalseg\ init__.py", line 12, in
import _jieba_fast_functions_py3 as _jieba_fast_functions
ImportError: DLL load failed: 找不到指定的模块。
”“”
我不太熟悉这种安装方式,以前都是偷懒anaconda的方法,是否是我操作出了问题?还是windows版本的问题
谢谢!