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 1919import multiprocessing as mp
2020import platform
2121
22+ import semver
23+ import theano
24+
2225_log = logging .getLogger ("pymc3" )
2326
2427if not logging .root .handlers :
2831 _log .addHandler (handler )
2932
3033
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+
3144def __set_compiler_flags ():
3245 # Workarounds for Theano compiler problems on various platforms
33- import theano
34-
3546 current = theano .config .gcc__cxxflags
3647 theano .config .gcc__cxxflags = f"{ current } -Wno-c++11-narrowing"
3748
Original file line number Diff line number Diff line change @@ -6,5 +6,6 @@ numpy>=1.15.0
66pandas >= 0.24.0
77patsy >= 0.5.1
88scipy >= 1.2.0
9+ semver
910theano-pymc == 1.1.2
1011typing-extensions >= 3.7.4
You can’t perform that action at this time.
0 commit comments