anaconda配置镜像链接和切换环境

activate learn // 切换到learn环境

conda create -n learn python=3 // 创建一个名为learn的环境并指定python版本为3(的最新版本)


# 添加Anaconda的TUNA镜像
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
 
# 设置搜索时显示通道地址
conda config --set show_channel_urls yes
 

安装pyqt-tools:

pip install PyQt5-tools -i https://pypi.douban.com/simple

国内源

清华:https://pypi.tuna.tsinghua.edu.cn/simple

阿里云:http://mirrors.aliyun.com/pypi/simple/

中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/

豆瓣:http://pypi.douban.com/simple/

anaconda 下载久了会自动断开,这时,可以通过下述方式来解决

1  conda config --set remote_read_timeout_secs 1000.0

如果在anaconda中安装包失败了  授权设置用下语句

pip install --user xxxxxxx

在编译PyQt ui文件的时候 出现错误  这时候  需要卸载掉pyqt  pyqt-tools  pyqt-sip

需要按顺序 先装 pyqt-sip  再装pyqt5这样就好了

如果有权先设置  pip install --user xxxx 这样就好了

如果编译ui文件的时候遇见下述问题

Error: No such file or directory: "using_pyqt_create_ui.ui"

需要再CMD中将目录切换到当前目录 再执行

发布了103 篇原创文章 · 获赞 9 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/qq_39653453/article/details/102480617