spyder-terminal icon indicating copy to clipboard operation
spyder-terminal copied to clipboard

Conda activate does not work

Open Greedquest opened this issue 3 years ago • 3 comments

Description of your problem

What steps will reproduce the problem?

  1. Open spyder powershell terminal
  2. No env is active (e.g expect (base) PS C:\Users\Username> but just get PS C:\Users\Username> )
  3. Run conda activate base - no errors
  4. type python to run an interactive session

What is the expected output? What do you see instead?

I see this warning:

Python 3.8.8 (default, Apr 13 2021, 15:08:03) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32

Warning:
This Python interpreter is in a conda environment, but the environment has
not been activated.  Libraries may fail to load.  To activate this environment      
please see https://conda.io/activation

Indicating conda activate silently failed.

I would like to use the anaconda prompt from within spyder, or at least to be able to run conda commands/get error info if they fail. My use case is installing new packages to the env or running in python 3.10 env which I can't otherwise since spyder-kernels is <=3.9 so IPython console won't find it.

Versions and main components

  • Terminal Version: 1.1.0
  • Spyder Version: 5.1.5
  • Python Version: 3.9.7
  • Operating system: Win 10

Greedquest avatar Oct 26 '21 15:10 Greedquest

Hi @Greedquest,

If you use another backend for the terminal, does the environment activates correctly? I just want to know if this is only happening in powershell or in windows overall.

steff456 avatar Nov 03 '21 15:11 steff456

Hey @steff456 no works in cmd just not powershell

Greedquest avatar Nov 04 '21 10:11 Greedquest

I'll try to reproduce this issue on my end

steff456 avatar Nov 08 '21 20:11 steff456