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' 【解决办法】:网上的解决方案有人说重启电脑可以,本人第一次尝试的时候,确实成功了。 但是再创建另外一个新给虚拟环境的时候,懒的重启了,又一直报错,最后的解决方案是把其他的虚拟环境复制一份,这样复制一份与采用命令创建的结果是一样的。

相关推荐
lqjun082726 分钟前
Qt程序单独运行报错问题
开发语言·qt
酷飞飞1 小时前
Python网络与多任务编程:TCP/UDP实战指南
网络·python·tcp/ip
hdsoft_huge2 小时前
Java & Spring Boot常见异常全解析:原因、危害、处理与防范
java·开发语言·spring boot
风中的微尘2 小时前
39.网络流入门
开发语言·网络·c++·算法
数字化顾问3 小时前
Python:OpenCV 教程——从传统视觉到深度学习:YOLOv8 与 OpenCV DNN 模块协同实现工业缺陷检测
python
未来之窗软件服务3 小时前
幽冥大陆(二)RDIFSDK 接口文档:布草洗涤厂高效运营的技术桥梁C#—东方仙盟
开发语言·c#·rdif·仙盟创梦ide·东方仙盟
小冯记录编程3 小时前
C++指针陷阱:高效背后的致命危险
开发语言·c++·visual studio
学生信的大叔3 小时前
【Python自动化】Ubuntu24.04配置Selenium并测试
python·selenium·自动化
1uther4 小时前
Unity核心概念⑨:Screen
开发语言·游戏·unity·c#·游戏引擎
C_Liu_4 小时前
C++:类和对象(下)
开发语言·c++