I am running into a trouble for "libstdc++.so.6: version `GLIBCXX_3.4.22' not found" issue.
I was trying to run python sklearn in R cloud. sklearn was successfully installed, but when I was trying to run:
"
import numpy as np
import matplotlib.pyplot as plt
from sklearn.datasets import make_blobs
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
I got the error message:
"ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/rstudio-user/.local/share/r-miniconda/envs/py3.8/lib/python3.8/site-packages/scipy/fft/_pocketfft/pypocketfft.cpython-38-x86_64-linux-gnu.so)"
It seems that "libstdc++.so.6: version `GLIBCXX_3.4.22'" not found... does anyone know how should I solve this problem?
Thanks Josh. Could you please provide more details on how to install the package from source? I was trying to type 'sudo apt-get install libstdc++6' in my terminal but it popped up "password for rstudio-user" and I don't think I have setup that password before...
Thanks so much, any details will be highly appreciated!
Hi Gosh, I checked and got to know that "GLIBCXX_3.4.21" is the latest version in my cloud. I need to install "GLIBCXX_3.4.22" in order to run those Python packages. I read some posts and I realize that I may not have permission to use sudo command to install "GLIBCXX_3.4.22" in my terminal. As you said, the only way I can get this install is to manually download it on my own and compile in my could, correct?
If my understanding is correct, can you provide some guidelines/instructions on how to do that so I can follow?