Conda新建python虚拟环境问题

Conda新建python虚拟环境问题:

【问题1】

conda create --name yolov8 python=3.10 -y

Retrieving notices: ...working... done

Channels:

  • defaults
    Platform: win-64
    Collecting package metadata (repodata.json): failed

UnavailableInvalidChannel: HTTP 404 NOT FOUND for channel anaconda/pkgs/main http://mirrors.aliyun.com/anaconda/pkgs/main

The channel is not accessible or is invalid.

You will need to adjust your conda configuration to proceed.

Use conda config --show channels to view your configuration's current state,

and use conda config --show-sources to view config file locations.

【原因】:上述问题是由于本地文件增加了阿里镜像源 'C:\Users\hlj\ .condarc' 的原因。

【解决办法】:把本地文件 '.condarc' 重命名为 '.condarcbk' ,就不会再报上述问题。

【问题2】

An error occurred while installing package 'defaults::vs2015_runtime-14.40.33807-h.

Rolling back transaction: done

Errno 13\] Permission denied: 'D:\\ProgramFiles\\miniconda3\\envs\\yolov8\\Library\\bin\\ucrtbase.dll' 【解决办法】:网上的解决方案有人说重启电脑可以,本人第一次尝试的时候,确实成功了。 但是再创建另外一个新给虚拟环境的时候,懒的重启了,又一直报错,最后的解决方案是把其他的虚拟环境复制一份,这样复制一份与采用命令创建的结果是一样的。

相关推荐
oioihoii几秒前
C++23 中的 views::chunk:深入探索与应用
开发语言·python·c++23
cs8219848313 分钟前
QT 解决msvc fatal error C1060: 编译器的堆空间不足
开发语言·qt
熊猫的反手凶变直线7 分钟前
Java-Lambda 表达式
java·开发语言·windows·笔记
在成都搬砖的鸭鸭7 分钟前
【Go底层】http标准库服务端实现原理
开发语言·http·golang
Super_man541889 分钟前
k8s之service解释以及定义
java·开发语言·云原生·容器·kubernetes
fie888911 分钟前
Java中的控制流语句:if、switch、for、foreach、while、do-while
java·开发语言·python
zhanghongyi_cpp33 分钟前
当当网Top500书籍信息爬取与分析
python·网络爬虫·数据可视化
草莓熊Lotso1 小时前
【C语言指针超详解(三)】--数组名的理解,一维数组传参的本质,冒泡排序,二级指针,指针数组
c语言·开发语言·经验分享·笔记
Blossom.1182 小时前
使用Python和TensorFlow实现图像分类的人工智能应用
开发语言·人工智能·python·深度学习·安全·机器学习·tensorflow
xx155802862xx2 小时前
用Redisson实现库存扣减的方法
java·python