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

相关推荐
Darkershadow3 分钟前
python学习之串口通信
python·学习
Macbethad33 分钟前
自动化测试技术报告
开发语言·lua
38242782734 分钟前
python:输出JSON
前端·python·json
不会画画的画师38 分钟前
Go开发指南:io/ioutil包应用和迁移指南
开发语言·后端·golang
2503_9284115640 分钟前
12.22 wxml语法
开发语言·前端·javascript
5980354151 小时前
【java工具类】小数、整数转中文大写
android·java·开发语言
JIngJaneIL1 小时前
基于java + vue个人博客系统(源码+数据库+文档)
java·开发语言·前端·数据库·vue.js·spring boot
吃喝不愁霸王餐APP开发者1 小时前
Java后端服务在对接全国性霸王餐API时的多数据中心部署与就近调用策略
java·开发语言
也许是_1 小时前
大模型应用技术之 详解 MCP 原理
人工智能·python
froginwe111 小时前
jQuery UI 实例
开发语言