已安装python和vscode、 怎么安装anaconda_【环境配置】Windows10系统下VSCode和Anaconda的配置和安装...

一、安装Anaconda

解决anaconda安装时候报错

win10 环境安装的anaconda3,在通过pycharm导入虚拟环境或者执行conda更新命令的时候出现ssl错误报错如下:

Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url

Elapsed: -

An HTTP error occurred when trying to retrieve this URL.

HTTP errors are often intermittent, and a simple retry will get you on your way.

SSLError(MaxRetryError('HTTPSConnectionPool(host=\'mirrors.tuna.tsinghua.edu.cn\', port=443): Max retries exceeded with url: /anaconda/pkgs/free/win-64/current_repodata.json (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))

解决方法:

Try copying these files from Anaconda3/Library/bin to Anaconda3/DLLs :

libcrypto-1_1-x64.dll

libssl-1_1-x64.dll

翻译过来就是:

把路径“Anaconda3/Library/bin ”下面的文件复制到路径“Anaconda3/DLLs”下 :

libcrypto-1_1-x64.dll

libssl-1_1-x64.dll

二、安装vscode

三、在vscode中设置虚拟环境

Ctrl+shift+P打开首选项,设置虚拟环境

将pythonPath改为虚拟环境的路径,例如我的虚拟环境名称为“tensorflow”

"python.pythonPath": "D:\\Anaconda3\\envs\\tensorflow"

"python.pythonPath": "D:\\Anaconda3\\envs\\tensorflow"

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值