conda-pack 迁移环境后,在目标机器执行jupyter lab 提示:
FileNotFoundError: [Errno 2] No such file or directory: ‘/home/conda/feedstock_root/build_artifacts/ipykernel_1717717528849/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_p/bin/python’
查询到文件读取的是conda环境目录下的
share/jupyter/kernels/python3/kernel.json
文件python可执行文件路径错误,修改即可
在源机器该路径正确,可能是conda-pack过程中出现bug