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'

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

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

相关推荐
布吉岛的石头5 分钟前
Java 程序员第 49 阶段11:Java 接 BERT:用 ONNX Runtime 做句向量推理
java·人工智能·python·深度学习·bert·transformer
第25小时记录8 分钟前
数据结构与算法 -第 3 章 常用算法-动态规划
数据结构·python
Dmz丶12 分钟前
前端转 AI 100 天 Day 18:pytest 入门——为什么你必须要写测试
python
niucloud-admin14 分钟前
JAVA V6 多商户商城 开发文档——JAVA服务端
java·开发语言
用户0190275816127 分钟前
如何用 Python 计算 DMA 平行线差指标?
python
轻舟技术A29 分钟前
Pi 的 Rust 实现来了:rpi,不止一个终端 Agent
开发语言·后端·rust
额额额对了1 小时前
嵌入式 Linux 启动程序文件
开发语言·嵌入式硬件·php
子非鱼a1 小时前
【WEB】EasySSTI
java·开发语言·前端
奈葵1 小时前
Python
开发语言·python