Skip to content
Advertisement

Installation issues with PyMC3

I was installing PyMC3 via Anaconda. The transaction execution was done. Post this action, my Anaconda console closes immediately on open. Unable to import PyMC3 module as well. Below is the error message that pops up before the console closes. I manage to capture a screen shot of it when it momentarily flashed. I have also attached the warning I get when I import PyMC3 module.

How do I resolve this issue? Is there any other way I can uninstall PyMC3 and Theano and install a fresh version?

Edit: And, I tried conda install m2w64-toolchain before running conda -c install pymc3. The transaction was not completed successfully. Still, I went ahead with the second execution. Probably, this is also one reason as to why I landed at this fatal error.

The error message pertaining to Visual studio is as follows:

C:Users      >SET DISUTILS_USE_SDK=1
C:Users      >SET MSSdk=1
C:Users      >SET platform=
C:Users      >IF/I [AMD64] == [amd64] set "platform=true"
C:Users      >if defined platform (set "VSREGKEY=HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftVisualStudio14.0" ) ELSE (set "VSREGKEY=HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftVisualStudio14.0")
C:Users      >for /F "skip=2 tokens=2.x" %A in ('reg query "HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftVisualStudio14.0" /v InstallDir') do SET "VSINSTALLDIR=%B"
ERROR: The system was unable to find the specified registry key or value.
C:Users      >if "" == "" (set "VSINSTALLDIR=" )
C:Users      >if "" == "" (
ECHO "Did not find VS in registry or in VS140COMNTOOLS env var - exiting"
 exit 1
)
"Did not find VS in registry or in VS140COMNTOOLS env var - exiting"

Update: I resolved the Theano issue by installing m2w64 toolchain via conda. It was due to non-availability of the compiler. The above didn’t resolve and was repetitive even after uninstalling anaconda, reinstalling it and even after installing VC++ redist for 2017. The anaconda console was crashing and the message flashed momentarily.

Advertisement

Answer

Just had this problem and found a solution. When searching (with Bing or Google) for conda install of pymc3, several links come up. The first is with conda-forge:

conda install -c conda-forge pymc3

DO NOT USE THIS or you will get the error messages in the above posts. I have VS installed for C++ and use it regularly.

Rather, use the installer from anaconda

conda install -c anaconda pymc3

This installer works properly – no silly error messages.

Alternatively, you can use pip install but I prefer conda since this allows me to better manage my python distro’s and venv’s.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement