File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 19
19
import multiprocessing as mp
20
20
import platform
21
21
22
+ import semver
23
+ import theano
24
+
22
25
_log = logging .getLogger ("pymc3" )
23
26
24
27
if not logging .root .handlers :
28
31
_log .addHandler (handler )
29
32
30
33
34
+ if not semver .match (theano .__version__ , ">=1.1.2" ):
35
+ print (
36
+ "!" * 60
37
+ + f"\n The installed Theano(-PyMC) version ({ theano .__version__ } ) does not match the PyMC3 requirements."
38
+ + "\n For PyMC3 to work, Theano must be uninstalled and replaced with Theano-PyMC."
39
+ + "\n See https://github.com/pymc-devs/pymc3/wiki for installation instructions.\n "
40
+ + "!" * 60
41
+ )
42
+
43
+
31
44
def __set_compiler_flags ():
32
45
# Workarounds for Theano compiler problems on various platforms
33
- import theano
34
-
35
46
current = theano .config .gcc__cxxflags
36
47
theano .config .gcc__cxxflags = f"{ current } -Wno-c++11-narrowing"
37
48
Original file line number Diff line number Diff line change @@ -6,5 +6,6 @@ numpy>=1.15.0
6
6
pandas >= 0.24.0
7
7
patsy >= 0.5.1
8
8
scipy >= 1.2.0
9
+ semver
9
10
theano-pymc == 1.1.2
10
11
typing-extensions >= 3.7.4
You can’t perform that action at this time.
0 commit comments