conda常用命令(Anaconda Prompt管理员身份运行)

1 查看、激活环境

(base) C:\WINDOWS\system32>conda env list
conda environments:

base * C:\ProgramData\Anaconda3
14.SVM C:\ProgramData\Anaconda3\envs\14.SVM
cling C:\ProgramData\Anaconda3\envs\cling
python27 C:\ProgramData\Anaconda3\envs\python27
tensor C:\ProgramData\Anaconda3\envs\tensor

(base) C:\WINDOWS\system32>activate tensor
在这里插入图片描述

2 用清华镜像更新库

(tensor) C:\WINDOWS\system32>python -m pip install --upgrade numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting numpy
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/4e/a0/7c78c8a2bb3f93eda58c4397936b669952051eef355e9e87a61ac29609e1/numpy-1.19.0-cp36-cp36m-win_amd64.whl (13.0MB)
|████████████████████████████████| 13.0MB 6.4MB/s
ERROR: tensorflow 1.10.0 has requirement numpy<=1.14.5,>=1.13.3, but you’ll have numpy 1.19.0 which is incompatible.
ERROR: tensorflow 1.10.0 has requirement setuptools<=39.1.0, but you’ll have setuptools 41.4.0 which is incompatible.

Installing collected packages: numpy
Found existing installation: numpy 1.16.5
Uninstalling numpy-1.16.5:
Successfully uninstalled numpy-1.16.5
Successfully installed numpy-1.19.0

(tensor) C:\WINDOWS\system32>python -m pip install --upgrade tensorflow -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting tensorflow
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/72/b8/2ef7057c956f1062ffab750a90a6bdcd3de127fb696fb64583c2dfe77aab/tensorflow-2.2.0-cp36-cp36m-win_amd64.whl (459.1MB)
|███████ | 101.3MB 273kB/s eta 0:21:51
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值