8

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.

top 4 comments
sorted by: hot top controversial new old
[-] conorm@feddit.uk 2 points 9 months ago

have you tried writing it in C?

[-] xurxia@mander.xyz 1 points 9 months ago

What command did you use to activate project0?

[-] dylanmorgan@slrpnk.net 1 points 9 months ago
[-] xurxia@mander.xyz 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

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

Python

6360 readers
5 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