All the Things that Can Go Wrong


When I import numpy, I get:

<frozen importlib._bootstrap>:219: RuntimeWarning: numpy.ufunc size changed, may indicate binary incompatibility. Expected 192 from C header, got 216 from PyObject

chatG says to upgrade numpy. I ask how I can do that from within a notebook:

!pip install --upgrade numpy

That gets me stuck in [*] forever. I exit and when I fire up Jupyter again, I find numpy can't be imported.

So I decide to install it using Anaconda. But, Anaconda's navigator never gets interactive - I'm stuck in "Loading applications". Worst - there's no way to kill it - Task Mgr doesn't show anything. No way to get rid of the green circular splotch on the screen.

Reboots, and tries the Anaconda prompt (after having to reboot again because of the green splotch)

conda update numpy gets me that. But, now, when I import pandas, I get an error about np.bool.

When I try conda update pandas, "All requested packages already installed"

Now, trying "conda remove pandas"

And it's stuck on "solving environment"

That turns out to be very scary - it downgrades a tonne of things. Interestingly, sees that pywin32 exists..

Then, in the conda prompt, I fire up python, it turns out to be python3.9 and "import numpy" gets me no module named numpy. WT*? I removed condas, not numpy.

Then, tries "conda install numpy pandas" (an earlier suggestion from chatG)

The following NEW packages will be INSTALLED:


  bottleneck         pkgs/main/win-64::bottleneck-1.3.7-py38h9128911_0

  numexpr            pkgs/main/win-64::numexpr-2.8.4-py38h7b80656_1

  pandas             pkgs/main/win-64::pandas-2.0.3-py38h4ed8f06_0

  python-tzdata      pkgs/main/noarch::python-tzdata-2023.3-pyhd3eb1b0_0

  tbb                pkgs/main/win-64::tbb-2021.8.0-h59b6b97_0


The following packages will be UPDATED:


  mkl                                            2020.2-256 --> 2023.1.0-h6b88ed4_46358

  mkl-service                          2.3.0-py38h196d8e1_0 --> 2.4.0-py38h2bbff1b_1

  mkl_fft                              1.3.0-py38h46781fe_0 --> 1.3.8-py38h2bbff1b_0

  mkl_random                           1.1.1-py38h47e9c7a_0 --> 1.2.4-py38h59b6b97_0

  numpy                               1.18.5-py38h6530119_0 --> 1.24.3-py38h79a8e48_1

  numpy-base                          1.18.5-py38hc3f5095_0 --> 1.24.3-py38h8a87ada_1

After that, when I double click the Jupyter icon on desktop (win 10) to launch it, the window appears and disappears within a second. chatG says to launch it from conda with "jupyter notebook". Didn't work.

Then, says to try (in the conda prompt) "conda install jupyter notebook" which seems to get me back in business. Except, now, there's no SK learn :)

Installs that, and I'm back. But, the look and feel of Jupyter has completely changed - so the productivity will be down for a bit :)


Comments

Popular posts from this blog

The Dummy Variable Trap

Your Handy ML Reference

Efficient Learning Machines: Theories, Concepts, and Applications for Engineers and System Designers