In Pycharm can not add conda environment

自闭症网瘾萝莉.ら 提交于 2020-05-31 02:03:52

问题


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


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/55040884/in-pycharm-can-not-add-conda-environment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!