简体   繁体   English

在 Pycharm 中无法添加 conda 环境

[英]In Pycharm can not add conda environment

I hava dowmload and installer Anaconda3 successfully ,but when I add conda environment in pycharm ,has the error "D:\\Anaconda3\\python.exe: can't open file 'create': [Errno 2] No such file or directory"我成功下载并安装了 Anaconda3,但是当我在 pycharm 中添加 conda 环境时,出现错误“D:\\Anaconda3\\python.exe: can't open file 'create': [Errno 2] No such file or directory”

how to deal with this problem如何处理这个问题

在此处输入图片说明

在此处输入图片说明

you need to provide path to the conda executable for making a conda venv and not python.您需要提供 conda 可执行文件的路径以制作 conda venv 而不是 python。 See the image attached below to see a possible location of the conda executable.请参阅下面的图片以查看 conda 可执行文件的可能位置。

PS: I don't have 10 point yet so the image is a link. PS:我还没有 10 分,所以图片是一个链接。

enter image description here在此处输入图片说明

This problem has been solved.这个问题已经解决了。

Execute the following command in dos在dos中执行以下命令

Conda  create -p D:\condaevn\pyleran -y python=3.7

to creat a conda evn创建一个 conda evn

在此处输入图片说明

then in the Pycharm, choose the "Existiing environment" and use the evn created by dos command然后在 Pycharm 中,选择“现有环境”并使用 dos 命令创建的 evn

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM