saiminhou

【环境配置】Windows10系统下VSCode和Anaconda的配置和安装

 一、安装Anaconda

 

 

解决anaconda安装时候报错

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

Collecting package metadata (current_repodata.json): failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64/current_repodata.json>
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"
 
发表于 2020-01-08 12:38  saiminhou  阅读(2799)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2021-11-30
  • 2022-12-23
  • 2021-11-20
  • 2021-10-11
  • 2022-01-19
  • 2021-05-17
  • 2021-12-09
  • 2021-11-27
猜你喜欢
  • 2022-12-23
  • 2021-09-13
  • 2021-08-08
  • 2021-07-29
  • 2021-05-04
  • 2021-10-12
  • 2022-01-22
相关资源
相似解决方案