@蛋蛋-zy
新环境总是觉得无法使用啊:
~/ML_kbar_prep.py in <module>()
7 import numpy as np
8 import talib
----> 9 import keras
10 from keras.models import load_model
11 from keras.models import Sequential
/opt/conda/envs/python3new/lib/python3.6/site-packages/keras/__init__.py in <module>()
1 from __future__ import absolute_import
2
----> 3 from . import utils
4 from . import activations
5 from . import applications
/opt/conda/envs/python3new/lib/python3.6/site-packages/keras/utils/__init__.py in <module>()
2 from . import np_utils
3 from . import generic_utils
----> 4 from . import data_utils
5 from . import io_utils
6 from . import conv_utils
/opt/conda/envs/python3new/lib/python3.6/site-packages/keras/utils/data_utils.py in <module>()
370 _SHARED_SEQUENCES = {}
371 # We use a Value to provide unique id to different processes.
--> 372 _SEQUENCE_COUNTER = multiprocessing.Value('i', 0)
373
374
/opt/conda/envs/python3new/lib/python3.6/multiprocessing/context.py in Value(self, typecode_or_type, lock, *args)
133 from .sharedctypes import Value
134 return Value(typecode_or_type, *args, lock=lock,
--> 135 ctx=self.get_context())
136
137 def Array(self, typecode_or_type, size_or_initializer, *, lock=True):
/opt/conda/envs/python3new/lib/python3.6/multiprocessing/sharedctypes.py in Value(typecode_or_type, lock, ctx, *args)
76 if lock in (True, None):
77 ctx = ctx or get_context()
---> 78 lock = ctx.RLock()
79 if not hasattr(lock, 'acquire'):
80 raise AttributeError("'%r' has no method 'acquire'" % lock)
/opt/conda/envs/python3new/lib/python3.6/multiprocessing/context.py in RLock(self)
70 '''Returns a recursive lock object'''
71 from .synchronize import RLock
---> 72 return RLock(ctx=self.get_context())
73
74 def Condition(self, lock=None):
/opt/conda/envs/python3new/lib/python3.6/multiprocessing/synchronize.py in __init__(self, ctx)
186
187 def __init__(self, *, ctx):
--> 188 SemLock.__init__(self, RECURSIVE_MUTEX, 1, 1, ctx=ctx)
189
190 def __repr__(self):
/opt/conda/envs/python3new/lib/python3.6/multiprocessing/synchronize.py in __init__(self, kind, value, maxvalue, ctx)
58 sl = self._semlock = _multiprocessing.SemLock(
59 kind, value, maxvalue, self._make_name(),
---> 60 unlink_now)
61 except FileExistsError:
62 pass
OSError: [Errno 30] Read-only file system
2018-02-05