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:
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
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
Post a Comment