安装micromamba之后conda的使用出现了一些问题,在使用conda create时报错如下:

Error while loading conda entry point: conda-libmamba-solver (libarchive.so.19: cannot open shared object file: No such file or directory)

CondaValueError: You have chosen a non-default solver backend (libmamba) but it was not recognized. Choose one of: classic

报错原因就是conda 加载conda-libmamba-solver时找不到libarchive.so.19,参考过一些解决方法均未解决。最终自己找到libarchive.so.19将其复制到/usr/lib下,问题得以解决。注意可能不能手动复制,需要给sudo权限,即终端输入

sudo cp /xxx/libarchive.so.19 /usr/lib/

//sudo cp <文件本来在哪儿> <要移动到哪儿>

conda获取requirements.txt

conda list -e > requirements.txt

一个生成的requirements.txt

# This file may be used to create an environment using:

# $ conda create --name --file

# platform: linux-64

_libgcc_mutex=0.1=conda_forge

_openmp_mutex=4.5=2_kmp_llvm

assimp=5.3.1=hfb0e8fe_2

bzip2=1.0.8=hd590300_5

ca-certificates=2023.11.17=hbcca054_0

console_bridge=1.0.2=h924138e_1

crocoddyl=2.0.2=py310hcfe0b05_0

cyrus-sasl=2.1.28=h52b45da_1

dbus=1.13.18=hb2f20db_0

eigen=3.4.0=h00ab1b0_0

eigenpy=3.1.4=py310hcfe0b05_0

eiquadprog=1.2.8=h0af5e60_0

example-robot-data=4.0.9=py310hcb52e73_0

expat=2.5.0=h6a678d5_0

fontconfig=2.14.2=h14ed4e7_0

freetype=2.12.1=h4a9f257_0

glib=2.69.1=he621ea3_2

gst-plugins-base=1.14.1=h6a678d5_1

gstreamer=1.14.1=h5eee18b_1

hpp-fcl=2.4.0=py310hd002f03_0

icu=73.2=h59595ed_0

jpeg=9e=h5eee18b_1

krb5=1.20.1=h143b758_1

ld_impl_linux-64=2.40=h41732ed_0

libblas=3.9.0=20_linux64_openblas

libboost=1.82.0=h6fcfa73_6

libboost-devel=1.82.0=h00ab1b0_6

libboost-headers=1.82.0=ha770c72_6

libboost-python=1.82.0=py310hcb52e73_6

libboost-python-devel=1.82.0=py310h17c5347_6

libcblas=3.9.0=20_linux64_openblas

libclang=14.0.6=default_hc6dbbc7_1

libclang13=14.0.6=default_he11475f_1

libcups=2.4.2=h2d74bed_1

libedit=3.1.20221030=h5eee18b_0

libevent=2.1.12=hdbd6064_1

libffi=3.4.2=h7f98852_5

libgcc-ng=13.2.0=h807b86a_3

libgfortran-ng=13.2.0=h69a702a_3

libgfortran5=13.2.0=ha4646dd_3

libgomp=13.2.0=h807b86a_3

liblapack=3.9.0=20_linux64_openblas

libllvm14=14.0.6=hdb19cb5_3

libnsl=2.0.1=hd590300_0

libopenblas=0.3.25=pthreads_h413a1c8_0

libpng=1.6.39=h5eee18b_0

libpq=12.15=hdbd6064_1

libsqlite=3.44.2=h2797004_0

libstdcxx-ng=13.2.0=h7e041cc_3

libuuid=2.38.1=h0b41bf4_0

libxcb=1.15=h7f8727e_0

libxkbcommon=1.0.1=h5eee18b_1

libxml2=2.10.4=hf1b16e4_1

libzlib=1.2.13=hd590300_5

llvm-openmp=17.0.6=h4dfa4b3_0

mysql=5.7.24=h721c034_2

ncurses=6.4=h59595ed_2

nspr=4.35=h6a678d5_0

nss=3.89.1=h6a678d5_0

numpy=1.26.3=py310hb13e2d6_0

octomap=1.9.8=h924138e_0

openssl=3.2.0=hd590300_1

pcre=8.45=h295c915_0

pinocchio=2.6.21=py310hf889902_1

pip=23.3.2=pyhd8ed1ab_0

python=3.10.12=hd12c33a_0_cpython

python_abi=3.10=4_cp310

qhull=2020.2=h4bd325d_2

qt=5.15.9=h06a4308_0

qt-main=5.15.2=h53bd1ea_10

qt-webengine=5.15.9=h9ab4d14_7

readline=8.2=h8228510_1

setuptools=69.0.3=pyhd8ed1ab_0

sqlite=3.41.2=h5eee18b_0

tinyxml=2.6.2=h4bd325d_2

tinyxml2=10.0.0=h59595ed_0

tk=8.6.13=noxft_h4845f30_101

tsid=1.7.0=py310h2d87c1e_2

tzdata=2023d=h0c530f3_0

urdfdom=3.1.1=h8a9b4ce_0

urdfdom_headers=1.1.1=h00ab1b0_0

wheel=0.42.0=pyhd8ed1ab_0

xz=5.4.2=h5eee18b_0

zlib=1.2.13=hd590300_5

zstd=1.5.5=hfc55251_0

参考文章

评论可见,请评论后查看内容,谢谢!!!
 您阅读本篇文章共花了: 


大家都在找:

conda:conda官网

linux:红帽linux官网

人工智能:人工智能ai在线使用