页次: 1
我使用 yay 安装 Anaconda 时遇到了一个问题,一直卡在安装过程中,无法完成。我尝试多次都遇到同样的情况
我用 yay -S anaconda 命令安装。
下载过程正常,PGP 验证警告被跳过,SHA512 校验通过。
构建和打包过程中看起来一切正常,但到了以下步骤后就卡住了:
==> Entering fakeroot environment...
==> Starting package()...
PREFIX=/home/SoulMind/.cache/yay/anaconda/pkg/anaconda/opt/anaconda
Unpacking payload ...
Installing base environment...
Preparing transaction: ...working... done
Executing transaction: ...working... done
installation finished.
==> Tidying install...
-> Purging unwanted files...
-> Copying source files needed for debug symbols...
我等了 20 多分钟,一直卡在这,并且我的磁盘空间充足。如何进一步排查和解决?
离线
把 /etc/makepkg.conf 里的 OPTIONS 里的 debug 前加个 ! 以不要生成调试符号包——它又慢又大,你这又不是从源码编译,也用不上。
离线
把 /etc/makepkg.conf 里的 OPTIONS 里的 debug 前加个 ! 以不要生成调试符号包——它又慢又大,你这又不是从源码编译,也用不上。
我修改了 /etc/makepkg.conf,在 OPTIONS 里加了 !debug,确实解决了卡住的问题。但是我现在遇到了一些新问题:
在终端输入 conda 时提示 bash: conda: command not found,似乎没有成功将 conda 加入到 PATH 中。
GNOME 菜单里的 Anaconda 图标没有logo,点击后也没有任何反应。
我在/opt/anaconda/bin里面找到了conda二进制文件,运行"conda --version"可以正常输出结果,但是运行conda-navigator(GUI),报错如下:
```
./anaconda-navigator
2024-12-06 10:37:21,435 - WARNING linux_scaling.get_primary_monitor_name:55
An exception occurred during fetching list of active monitors.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Aborted (core dumped)
```
似乎是不支持Wayland
离线
大概需要重新登录才能自动把 /opt/anaconda/bin 加入 $PATH。
似乎是不支持 GNOME。按提示试试设置 QT_QPA_PLATFORM=wayland。
离线
大概需要重新登录才能自动把 /opt/anaconda/bin 加入 $PATH。
似乎是不支持 GNOME。按提示试试设置 QT_QPA_PLATFORM=wayland。
重新登录后并没有添加到PATH,运行conda依旧找不到对应文件。
我运行了“QT_QPA_PLATFORM=wayland”之后尝试运行anaconda-navigator,依然出现相同报错。
离线
依云 说:大概需要重新登录才能自动把 /opt/anaconda/bin 加入 $PATH。
似乎是不支持 GNOME。按提示试试设置 QT_QPA_PLATFORM=wayland。重新登录后并没有添加到PATH,运行conda依旧找不到对应文件。
我运行了“QT_QPA_PLATFORM=wayland”之后尝试运行anaconda-navigator,依然出现相同报错。
完整输出:
```
/opt/anaconda/bin/anaconda-navigator
Error while loading conda entry point: anaconda-cloud-auth (OpenSSL 3.0's legacy provider failed to load. This is a fatal error by default, but cryptography supports running without legacy algorithms by setting the environment variable CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If you did not expect this error, you have likely made a mistake with your OpenSSL configuration.)
Error while loading conda entry point: conda-content-trust (PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process)
Error while loading conda entry point: anaconda-cloud-auth (OpenSSL 3.0's legacy provider failed to load. This is a fatal error by default, but cryptography supports running without legacy algorithms by setting the environment variable CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If you did not expect this error, you have likely made a mistake with your OpenSSL configuration.)
Error while loading conda entry point: conda-content-trust (PyO3 modules compiled for CPython 3.8 or older may only be initialized once per interpreter process)
Traceback (most recent call last):
File "/opt/anaconda/bin/anaconda-navigator", line 7, in <module>
from anaconda_navigator.app.main import main
File "/opt/anaconda/lib/python3.12/site-packages/anaconda_navigator/app/main.py", line 19, in <module>
from anaconda_navigator.app.start import start_app
File "/opt/anaconda/lib/python3.12/site-packages/anaconda_navigator/app/start.py", line 32, in <module>
from anaconda_navigator.widgets.main_window import MainWindow
File "/opt/anaconda/lib/python3.12/site-packages/anaconda_navigator/widgets/main_window/__init__.py", line 30, in <module>
from anaconda_navigator.config import preferences, feature_flags
File "/opt/anaconda/lib/python3.12/site-packages/anaconda_navigator/config/feature_flags.py", line 15, in <module>
from anaconda_navigator.api import cloud, conda_api
File "/opt/anaconda/lib/python3.12/site-packages/anaconda_navigator/api/cloud/__init__.py", line 4, in <module>
from .api import *
File "/opt/anaconda/lib/python3.12/site-packages/anaconda_navigator/api/cloud/api.py", line 17, in <module>
import anaconda_cloud_auth.handlers
File "/opt/anaconda/lib/python3.12/site-packages/anaconda_cloud_auth/__init__.py", line 6, in <module>
from anaconda_cloud_auth.actions import login # noqa: E402
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/anaconda/lib/python3.12/site-packages/anaconda_cloud_auth/actions.py", line 11, in <module>
import jwt
File "/opt/anaconda/lib/python3.12/site-packages/jwt/__init__.py", line 1, in <module>
from .api_jwk import PyJWK, PyJWKSet
File "/opt/anaconda/lib/python3.12/site-packages/jwt/api_jwk.py", line 7, in <module>
from .algorithms import get_default_algorithms, has_crypto, requires_cryptography
File "/opt/anaconda/lib/python3.12/site-packages/jwt/algorithms.py", line 12, in <module>
from .utils import (
File "/opt/anaconda/lib/python3.12/site-packages/jwt/utils.py", line 7, in <module>
from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurve
File "/opt/anaconda/lib/python3.12/site-packages/cryptography/hazmat/primitives/asymmetric/ec.py", line 11, in <module>
from cryptography.exceptions import UnsupportedAlgorithm, _Reasons
File "/opt/anaconda/lib/python3.12/site-packages/cryptography/exceptions.py", line 9, in <module>
from cryptography.hazmat.bindings._rust import exceptions as rust_exceptions
RuntimeError: OpenSSL 3.0's legacy provider failed to load. This is a fatal error by default, but cryptography supports running without legacy algorithms by setting the environment variable CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If you did not expect this error, you have likely made a mistake with your OpenSSL configuration.
```
离线
anaconda 应该在 /etc/profile.d 里放了把自己的目录加入 PATH 的脚本呀。
这报错哪里相同了……设置 CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1 吧。
离线
抱歉我没注意看。现在修好了
在/usr/share/applications/anaconda-navigator.desktop中修改Exec和Icon字段如下:
Exec=env CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1 QT_QPA_PLATFORM=xcb QT_XCB_GL_INTEGRATION=none LIBGL_ALWAYS_SOFTWARE=1 /opt/anaconda/bin/anaconda-navigator
Icon=/opt/anaconda/lib/python3.12/site-packages/anaconda_navigator/static/images/common/anaconda-icon-256x256.png
anaconda 应该在 /etc/profile.d 里放了把自己的目录加入 PATH 的脚本呀。
这报错哪里相同了……设置 CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1 吧。
离线
页次: 1