Python Forum
Use different Anaconda environments on Linux Mint and Spyder
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use different Anaconda environments on Linux Mint and Spyder
#1
I'm trying to use and install packages in more than one environment through Anaconda 4.9.2 (I use Linux Mint 20 and Spyder 4.1.5). I created an environment called phdenv, and it seems to me that I was able to install Python 3.7, but when trying to activate the environment through the command
conda activate phdenv
the error that appears is the following:

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run

     $ init init <SHELL_NAME>

Currently supported shells are:
   - bash
   - fish
   - tcsh
   - xonsh
   - zsh
   - powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.



Note: you may need to restart the kernel to use updated packages.
what am I doing wrong?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Windows, Linux and virtual environments Calab 2 499 Mar-07-2025, 10:43 PM
Last Post: snippsat
  Python use of virtual environments bre67e49 4 794 Feb-19-2025, 04:01 AM
Last Post: Sece1967
  Best practice on using virtual environments in Python bytecrunch 6 15,382 Feb-14-2024, 03:22 PM
Last Post: snippsat
  Virtual Environments - Organization (VS Code) JaysonWonder 11 3,987 Jan-26-2023, 11:34 PM
Last Post: Larz60+
  Keeping up with IDEs and Virtual Environments... bytecrunch 7 7,123 Sep-05-2022, 08:04 PM
Last Post: snippsat
  I don't understand pip and environments snakes 3 2,209 Jul-31-2022, 08:17 PM
Last Post: snakes
  pip and venv virtual environments soupworks 2 3,025 Dec-30-2020, 11:38 PM
Last Post: soupworks
  Anaconda-install on MX-Linux Version 19.xy - but somehow got stuck apollo 1 3,416 May-04-2020, 11:27 AM
Last Post: snippsat
  Anaconda Spyder erratically reset by distutils C extension OTAGOHARBOUR 4 3,308 Nov-27-2019, 01:51 PM
Last Post: ThomasL
  Virtual Environments pneveux 1 2,354 Apr-04-2019, 09:15 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020