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'

【解决办法】:网上的解决方案有人说重启电脑可以,本人第一次尝试的时候,确实成功了。

但是再创建另外一个新给虚拟环境的时候,懒的重启了,又一直报错,最后的解决方案是把其他的虚拟环境复制一份,这样复制一份与采用命令创建的结果是一样的。

相关推荐
AngeliaXue8 分钟前
Java集合(List篇)
java·开发语言·list·集合
世俗ˊ9 分钟前
Java中ArrayList和LinkedList的比较
java·开发语言
顶呱呱程序12 分钟前
2-100 基于matlab的水果识别
开发语言·matlab·边缘检测·水果识别·特征提取·matlab-gui
鸽芷咕17 分钟前
【Python报错已解决】ModuleNotFoundError: No module named ‘tensorflow‘
python·机器学习·tensorflow·bug·neo4j
李元豪20 分钟前
python 自动化 win11 编程 实现 一键 启动多个软件,QQ浏览器,snipaste,pycharm软件
python·pycharm·自动化
痛&快乐着20 分钟前
python-在PyCharm中使用PyQt5
python·qt·pycharm
fydw_71527 分钟前
PyTorch 激活函数及非线性变换详解
人工智能·pytorch·python
Rverdoser28 分钟前
在 PyCharm 中配置 Anaconda 环境
ide·python·pycharm
Milo_K30 分钟前
项目文件配置
java·开发语言
IT小辉同学43 分钟前
用 Pygame 实现一个乒乓球游戏
python·游戏·pygame