简体   繁体   中英

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"

how to deal with this problem

在此处输入图片说明

在此处输入图片说明

you need to provide path to the conda executable for making a conda venv and not python. See the image attached below to see a possible location of the conda executable.

PS: I don't have 10 point yet so the image is a link.

enter image description here

This problem has been solved.

Execute the following command in dos

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

to creat a conda evn

在此处输入图片说明

then in the Pycharm, choose the "Existiing environment" and use the evn created by dos command

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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