this post was submitted on 27 Jan 2024
8 points (90.0% liked)

Python

6339 readers
7 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 9 months ago (2 children)

What command did you use to activate project0?

[–] [email protected] 1 points 9 months ago (1 children)
[–] [email protected] 1 points 9 months ago

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