Forum Discussion
Power BI Python with Anaconda missing dependency
- Anonymous7 years ago
The Python environment I'm referring to already has the required dependencies installed. I was suspecting the error to be caused by the activate.bat file not activating the Python environment in Anaconda, prior to running the script. However, I managed to resolve my problem simply by updating Python in Anaconda Prompt i.e.
conda upgrade python
Some more flavor on this from Nov 2019.
After many, many, many troubleshooting itterations, the only evnironment version that works is the one with pip-installed matplotlib, pandas and numpy.
As soon as conda install touches either pandas or numpy in particular - the two get desynced.
Here is a working collection:
astroid 2.3.1
certifi 2019.9.11
colorama 0.4.1
cycler 0.10.0
isort 4.3.21
kiwisolver 1.1.0
lazy-object-proxy 1.4.2
matplotlib 3.1.1
mccabe 0.6.1
numpy 1.17.4
pandas 0.25.3
pip 19.3.1
pylint 2.4.2
pyparsing 2.4.5
python-dateutil 2.8.1
pytz 2019.3
setuptools 41.6.0.post20191030
six 1.12.0
typed-ast 1.4.0
wheel 0.33.6
wincertstore 0.2
wrapt 1.11.2
Thank you so much. This was the ticket. As long as you create a new environment and have pip install those 3 packages I was able to open pbi as normal without having to do the workaround from lauching within anaconda prompt. Just make sure you switch to the new environment in the pbi options. Also, I had to use conda install to first install pip itself in the new environment. At that point I used pip to install these 3 required packages.