Skip to content

Commit 102798f

Browse files
samO2I1Sambhav Garg
andauthored
Warnings about parallel Theano or PyMC3 installation were removed (#5328)
Closes #5312 Co-authored-by: Sambhav Garg <[email protected]>
1 parent 664a447 commit 102798f

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

pymc/__init__.py

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -28,39 +28,6 @@
2828
_log.addHandler(handler)
2929

3030

31-
def _check_install_compatibilitites():
32-
try:
33-
import theano
34-
35-
_log.warning(
36-
"!" * 60
37-
+ f"\nYour Python environment has Theano(-PyMC) {theano.__version__} installed, "
38-
+ f"but you are importing PyMC {__version__} which uses Aesara as its backend."
39-
+ f"\nFor PyMC {__version__} to work as expected you should uninstall Theano(-PyMC)."
40-
+ "\nSee https://github.com/pymc-devs/pymc/wiki for update instructions.\n"
41-
+ "!" * 60
42-
)
43-
except ImportError:
44-
pass
45-
46-
try:
47-
import pymc3
48-
49-
_log.warning(
50-
"!" * 60
51-
+ f"\nYou are importing PyMC {__version__}, but your environment also has"
52-
+ f" the legacy version PyMC3 {pymc3.__version__} installed."
53-
+ f"\nFor PyMC {__version__} to work as expected you should uninstall PyMC3."
54-
+ "\nSee https://github.com/pymc-devs/pymc/wiki for update instructions.\n"
55-
+ "!" * 60
56-
)
57-
except ImportError:
58-
pass
59-
60-
61-
_check_install_compatibilitites()
62-
63-
6431
def __set_compiler_flags():
6532
# Workarounds for Aesara compiler problems on various platforms
6633
import aesara

0 commit comments

Comments
 (0)