如何用conda中的导入pysal解决此问题?
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何用conda中的导入pysal解决此问题?相关的知识,希望对你有一定的参考价值。
我用pyton 3.7(pysal
)在conda中安装了conda install -c conda-forge pysal
,但是我尝试导入它,但出现此错误:
runfile('D:/2019-1/Cartografia Geotecnica/Talleres&cod/loco.py', wdir='D:/2019-1/Cartografia Geotecnica/Talleres&cod')
Traceback (most recent call last):
File "D:\2019-1\Cartografia Geotecnica\Talleres&cod\loco.py", line 7, in <module>
import pysal
File "C:\Users\Blad\Anaconda3\lib\site-packages\pysal\__init__.py", line 3, in <module>
from . import explore
File "C:\Users\Blad\Anaconda3\lib\site-packages\pysal\explore\__init__.py", line 2, in <module>
import giddy
File "C:\Users\Blad\Anaconda3\lib\site-packages\giddy\__init__.py", line 11, in <module>
from . import ergodic
File "C:\Users\Blad\Anaconda3\lib\site-packages\giddy\ergodic.py", line 10, in <module>
import quantecon as qe
File "C:\Users\Blad\Anaconda3\lib\site-packages\quantecon\__init__.py", line 14, in <module>
from . import game_theory
File "C:\Users\Blad\Anaconda3\lib\site-packages\quantecon\game_theory\__init__.py", line 12, in <module>
from .support_enumeration import support_enumeration, support_enumeration_gen
File "C:\Users\Blad\Anaconda3\lib\site-packages\quantecon\game_theory\support_enumeration.py", line 14, in <module>
from ..util.numba import _numba_linalg_solve
File "C:\Users\Blad\Anaconda3\lib\site-packages\quantecon\util\numba.py", line 7, in <module>
from numba.targets.linalg import _LAPACK
ModuleNotFoundError: No module named 'numba.targets.linalg'
[帮帮我,请谢谢。
答案
您还需要使用以下方法将Quantecon软件包更新为0.4.7版:
conda update quantecon=0.4.7
以上是关于如何用conda中的导入pysal解决此问题?的主要内容,如果未能解决你的问题,请参考以下文章