Venvs Part 6 - Processing a nice message, Part 2

Venvs Part 6 - Processing a nice message, Part 2

Okay so in my last post I processed a very kind and helpful message on venvs that my colleague sent me. But it was a lot. I've had two calls since. Let me see if now I can process anything or understand anything any better. I am completely lost when reading over my last blog post. So let me start with the message and type it out please one more time please - thank you. So once again, my colleague says:

"When you configure an interpreter, you're pointing it towards a particular environment." What does this mean? So you're pointing your python interpreter towards a particular virtual environment? Okay - so got it - when you point your interpreter to a particular environment, then yes, you are simply just telling your interpreter to use the version of python which is inside specifically your virtual environment - rather the than the global one.

Nice one!!! thanks.

Next bit

If I type which python into a terminal, it will give me the folder that the python code script lives in, and it will be different for each virtual environment. Let me try this out. For my practice project: 
  • It's clearly pointing to my project
  • And then my virtual inside of it 
  • And then my python inside of that - okay then makes sense - thank you 
Same with my AI environment for work - nice - thanks.

And the best thing is - I can see that the two different pythons point inside of the two different python environments - okay - perfect - thanks. "Opening a python shell, or running any Python program, involves the interpreter reading through all the code already in the environment, line by line. Once it's done that, it will let you type in and add more code. 

That makes sense - so I guess if I type 'python' into my terminal - it will read all of the code - then allow me to add some more.

Interpreters reaching an exception will provide a traceback - okay nice, nice - okay then - I know those. xx

An image symbolising code

So where were we up to? We were up to the fact that virutal environments contain a folder structure. It's 5.40 pm. I got a bit distracted today by a few calls.

They were useful but a bit sad that I didn't get more of this done. What to do? To stay past 6 (or until 6) and risk continuing my burnout? Or to go home and rest like I should? Maybe I'll give it 20 more minutes.

Comments

Popular posts from this blog

Hello World

“But yesterday, I heard God say, you were born to be the one…”

In the Water, I find Fire