|
除了numpy和scipy版本对不上,其他安装项跟quantecon网站完全一致
但是卡死了,强制中断内核后有了下面这段话
PermissionError Traceback (most recent call last)
File E:\ProgramData\Anaconda3\lib\tempfile.py:255, in _mkstemp_inner(dir, pre, suf, flags, output_type)
254 try:
--> 255 fd = _os.open(file, flags, 0o600)
256 except FileExistsError:
PermissionError: [Errno 13] Permission denied: 'E:\\ProgramData\\Anaconda3\\lib\\site-packages\\quantecon\\game_theory\\__pycache__\\tmpk9j2agxj'
During handling of the above exception, another exception occurred:
KeyboardInterrupt Traceback (most recent call last)
Input In [3], in <cell line: 1>()
----> 1 from quantecon import Kalman, LinearStateSpace
File E:\ProgramData\Anaconda3\lib\site-packages\quantecon\__init__.py:17, in <module>
15 #-Modules-#
16 from . import distributi**
---> 17 from . import game_theory
18 from . import quad
19 from . import random
File E:\ProgramData\Anaconda3\lib\site-packages\quantecon\game_theory\__init__.py:6, in <module>
1 # flake8: noqa
2 """
3 Game Theory SubPackage
4
5 """
----> 6 from .normal_form_game import Player, NormalFormGame
7 from .normal_form_game import pure2mixed, best_resp**e_2p
8 from .random import (
9 random_game, covariance_game, random_pure_acti**, random_mixed_acti**
10 )
File E:\ProgramData\Anaconda3\lib\site-packages\quantecon\game_theory\normal_form_game.py:888, in <module>
882 return mixed_action
885 # Numba jitted functi** #
887 @jit(nopython=True, cache=True)
--> 888 def best_resp**e_2p(payoff_matrix, opponent_mixed_action, tol=1e-8):
889 """
890 Numba-optimized version of `Player.best_resp**e` compilied in
891 nopython mode, specialized for 2-player games (where there is only
(...)
913
914 """
915 n, m = payoff_matrix.shape
File E:\ProgramData\Anaconda3\lib\site-packages\numba\core\decorators.py:212, in _jit.<locals>.wrapper(func)
208 disp = dispatcher(py_func=func, locals=locals,
209 targetopti**=targetopti**,
210 **dispatcher_args)
211 if cache:
--> 212 disp.enable_caching()
213 if sigs is not None:
214 # Register the Dispatcher to the type inference mechanism,
215 # even though the decorator hasn't returned yet.
216 from numba.core import typeinfer
File E:\ProgramData\Anaconda3\lib\site-packages\numba\core\dispatcher.py:863, in Dispatcher.enable_caching(self)
862 def enable_caching(self):
--> 863 self._cache = FunctionCache(self.py_func)
File E:\ProgramData\Anaconda3\lib\site-packages\numba\core\caching.py:613, in Cache.__init__(self, py_func)
611 self._name = repr(py_func)
612 self._py_func = py_func
--> 613 self._impl = self._impl_class(py_func)
614 self._cache_path = self._impl.locator.get_cache_path()
615 # This may be a bit strict but avoids us maintaining a magic number
File E:\ProgramData\Anaconda3\lib\site-packages\numba\core\caching.py:346, in _CacheImpl.__init__(self, py_func)
344 source_path = inspect.getfile(py_func)
345 for cls in self._locator_classes:
--> 346 locator = cls.from_function(py_func, source_path)
347 if locator is not None:
348 break
File E:\ProgramData\Anaconda3\lib\site-packages\numba\core\caching.py:193, in _SourceFileBackedLocatorMixin.from_function(cls, py_func, py_file)
191 self = cls(py_func, py_file)
192 try:
--> 193 self.ensure_cache_path()
194 except OSError:
195 # Cannot ensure the cache directory exists or is writable
196 return
File E:\ProgramData\Anaconda3\lib\site-packages\numba\core\caching.py:120, in _CacheLocator.ensure_cache_path(self)
118 os.makedirs(path, exist_ok=True)
119 # Ensure the directory is writable by trying to write a temporary file
--> 120 tempfile.TemporaryFile(dir=path).close()
File E:\ProgramData\Anaconda3\lib\tempfile.py:545, in NamedTemporaryFile(mode, buffering, encoding, newline, suffix, prefix, dir, delete, errors)
542 if _os.name == 'nt' and delete:
543 flags |= _os.O_TEMPORARY
--> 545 (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags, output_type)
546 try:
547 file = _io.open(fd, mode, buffering=buffering,
548 newline=newline, encoding=encoding, errors=errors)
File E:\ProgramData\Anaconda3\lib\tempfile.py:262, in _mkstemp_inner(dir, pre, suf, flags, output_type)
257 continue # try again
258 except PermissionError:
259 # This exception is thrown when a directory with the chosen name
260 # already exists on windows.
261 if (_os.name == 'nt' and _os.path.isdir(dir) and
--> 262 _os.access(dir, _os.W_OK)):
263 continue
264 else:
KeyboardInterrupt:
求助这是怎么回事? |
|