Problem with conda

I recently picked up the python mastery bundle from humble bundle and one of the books (about larger-scale projects) has its exercises built around using anaconda virtual environments. I am able to create a project using:

% conda create -n project0 —channel=conda-forge python=3.12

But when I try to activate project0 I get an error that “activate” is an invalid choice. When I tried to initialize conda for Bash, my terminal behaved like the default echo for typed characters turned off.

7 points · 4 comments · view on lemmy.world

4 Comments

conorm@feddit.uk · 2 pts · 2y

have you tried writing it in C?

xurxia@mander.xyz · 1 pts · 2y (2 replies)

What command did you use to activate project0?

dylanmorgan@slrpnk.net · 1 pts · 2y (1 reply)
conda activate project0
xurxia@mander.xyz · 1 pts · 2y

I don't use conda actually (I did in the past), but I think you could try:

conda shell.bash activate project0

You must see the paths and config used to activate the environment. Check all is fine.

Source: https://docs.conda.io/projects/conda/en/latest/dev-guide/deep-dives/activation.html