Conda安装

1|0Conda 安装


2|0conda安装


wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-py38_4.12.0-Linux-x86_64.sh && sh Miniconda3-py38_4.12.0-Linux-x86_64.sh

3|0conda换源


cat > ~/.condarc <<EOF channels: - defaults show_channel_urls: true default_channels: - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2 custom_channels: conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud EOF conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ conda config --set show_channel_urls yes conda config --show channels conda create -n sjn-judge1 python=3.11 conda config --set ssl_verify false #WIN10下Powershell无法使用‘conda activate’ #首先需要给PowerShell(管理员运行)更改一下执行策略(默认是Restricted): set-ExecutionPolicy RemoteSigned #然后在Powershell中执行: conda init powershell #最后重启PowerShell,发现已经可以自动激活环境了。

4|0pip换源


pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

5|0pip常用命令


#安装包 pip install Package pip install -r requirements.txt #更新包 pip install -U Package #卸载包 pip uninstall Package #列出已安装软件 pip list pip freeze pip freeze -r requirements.txt #某个包详细信息 pip show -f Package #临时使用指定源安装 pip install -i https://mirrors.aliyun.com/pypi/simple/ tensorboard #升级pip到最新版本 pip install pip -U

__EOF__

本文作者JessePinkMan
本文链接https://www.cnblogs.com/edclol/p/17282540.html
关于博主:评论和私信会在第一时间回复。或者直接私信我。
版权声明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
声援博主:如果您觉得文章对您有帮助,可以点击文章右下角推荐一下。您的鼓励是博主的最大动力!
posted @   edclol  阅读(35)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!
点击右上角即可分享
微信分享提示