ubuntu anaconda pyside2 报各种错误的解决方法

本文介绍了在Ubuntu系统中使用Anaconda安装PySide2时遇到错误的解决步骤,包括以普通用户权限安装Anaconda,初始化环境变量,删除已有相关包,添加国内源如TUNA,以及重新下载环境包的详细过程。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1.以普通当前用户权限默认安装anaconda到

/home/【用户名】/anaconda3

目录下

 

2.需按照提示conda init回'yes'将其添加到环境变量中,安装成功在终端命令行前面会增加(base)

3.此时anaconda自带了一些pyside和qt相关的一些包,需要删除再重新构建。

pip uninstall pyside2
pip uninstall qt
pip uninstall  pyqt5
conda remove pyside2
conda remove qt
conda remove pyqt5

4.添加coda国内源

添加TUNA仓库

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/

Conda 附加库 

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
c
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值