Can't activate virtual environment in Miniconda

只谈情不闲聊 提交于 2019-12-20 02:45:34

问题


When I create a virtual environment in Miniconda on Windows 8 and activate it in PowerShell ("activate env"), it says the environment is being activated, but upon typing "conda env list", it shows me that I'm still in the root environment. I checked the envs folder in Miniconda, and the folder with the env is there and seems to be fine with a Python distribution and everything, but for some reason I'm unable to go into the environment itself. For some reason, it works when I use the Command Prompt instead, but this isn't an ideal solution, since I'd like to be able to do everything in PowerShell.

Any help would be appreciated.


回答1:


activate currently doesn't support Powershell. You'll need to modify your path manually, or else call the full path to the Python in the environment.



来源:https://stackoverflow.com/questions/30054372/cant-activate-virtual-environment-in-miniconda

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