English 中文(简体)
GLIBCXX_3.4.30 在虚拟环境中(在尝试大量解决办法之后)找不到校准吗?
原标题: GLIBCXX_3.4.30 not found for librosa in conda virtual environment (after trying out a lot of solutions)?

我正在尝试import librosa,但我被带上这一错误:

/home/lakshya/anaconda3/envs/tff_env/lib/python3.9/site-packages/zmq/backend/cython/../../../../.././libstdc++.so.6: version `GLIBCXX_3.4.30  not found (required by /home/lakshya/anaconda3/envs/tff_env/lib/python3.9/site-packages/scipy/fft/_pocketfft/pypocketfft.cpython-39-x86_64-linux-gnu.so)

I tried the following to fix it based on the other similar questions that I browsed through:

  1. sudo aptgetstal> libstdc++6

    它的产出:libstdc++6 已成为最新版本(10.2.1-6)。

  2. http://www.un.org/Depts/DGACM/index_french.htm

    它的产出:0升级,0新安装,0 删除,0 未经升级。

  3. strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ∗∗∗∗

    它的产出:GLIBCXX版,直至GLIBCXX_3.4.28

  4. condastaling libgcc in my actual env “tff_env>

    产出:libgcc-7.2.0 安装在tff_env

  5. Pip installed the libgcc package in the virtual environment as well. Didn t work.

我能做些什么?

我的顾问:Debian GNU/HCH 11 (bullseye)

最佳回答

只是处理一个类似的问题,它像你一样需要确保你有最新版本的快乐。 履历:

conda install -c conda-forge gcc=12.1.0

Fixed the error for me.

问题回答

After my search on anaconda packages, I found only the package "libstdcxx" will substantially bring new "libstdc++.so.6" file to the conda environment (while "gcc", "gcc_linux-64", and "libgcc-ng" cannot). Thus, installing the following package can fix this problem for me.

<代码>conda 安装-c conda-forge libstdcxx-ng=12

PS: dfcorbin s answer conda install -c conda-forge gcc=12 not works for me.

不幸的是,上述答复中没有一项对我有效。 我最后做的是人工检查<代码>libstdc++.so.6文档。

首先,我检查了系统档案,我方没有归还:

strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 « ep GLIBCXX_3.4.30

接着,我看看了该村的档案。

strings /path-to-your-conda/envs/your-env-name/lib/libstc++.so.6 grep GLIBCXX3.4.30

This indicates that the simple solution is to append the path to the conda file to the LD_LIBRARY_PATH.

<代码>出口 LD_LIBRaire_PATH=/path-to-your-conda/envs/your-env-name/lib:$LD_LIBRaire_PATH

If the accepted answer didn t work, try this

我的条件与最初的海报相同,接受的答案是,“条码>conda永远不变。 我尝试从1.9.31.9.1下调<代码>。

你可以利用以下指挥机构这样做:

conda install -c anaconda scipy==1.9.1 

一种解决办法是,在试图管理 mu或 mu鱼时,确定这一问题如下:

OSError: /home/ubuntu/anaconda3/envs/tensorflow_p36/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.20 not foundwhen starting ipython. For some reason this library isnt in the anaconda environments libstdc++.so.6. It is in the base ubuntu library. So link the anaconda version of this library back to the os version:

cd /home/ubuntu/anaconda3/envs/tensorflow_p36/lib
mv libstdc++.so.6 libstdc++.so.6.old
ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 libstdc++.so.6

https://bcourses.berkeley.edu/courses/1478831/pages/glibcxx-missing

因此,我为我工作的是人工冲销Salker.10,我已使用<条码>make altinstall安装了该文本,并将锡皮提升到最新版本。

其他答复都没有给我工作。 确实如此:

pip install scikit-build

上文提到的遗症对我来说是徒劳的。 我将我从1.9.1降至1.6.1。

在某些情况下,有多个校准X光灯的装置,并运行你希望与它连接的时代,但发现图书馆位于错误的地方。 可以通过改变进口图书馆秩序来解决这一问题。 这个问题已经通过在行文上进口微粒来解决。

所有其他答复都没有为我工作,但解决了问题:

import torch

该行将添加在档案上。





相关问题
Signed executables under Linux

For security reasons, it is desirable to check the integrity of code before execution, avoiding tampered software by an attacker. So, my question is How to sign executable code and run only trusted ...

encoding of file shell script

How can I check the file encoding in a shell script? I need to know if a file is encoded in utf-8 or iso-8859-1. Thanks

How to write a Remote DataModule to run on a linux server?

i would like to know if there are any solution to do this. Does anyone? The big picture: I want to access data over the web, using my delphi thin clients. But i´would like to keep my server/service ...

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/...

Good, free, easy-to-use C graphics libraries? [closed]

I was wondering if there were any good free graphics libraries for C that are easy to use? It s for plotting 2d and 3d graphs and then saving to a file. It s on a Linux system and there s no gnuplot ...