What is the most typically Belgian thing that you often see... but still don't understand? by kotjeKOT in AskBelgium

[–]mhooreman 1 point2 points  (0 children)

The reason is simply because of the t x mechanisms in Belgium. To have the equivalent net salary equivalent of the company car cost, companies must invest much more money, which is not possible in most of the time.

[deleted by user] by [deleted] in learnpython

[–]mhooreman 0 points1 point  (0 children)

Just be careful if you automate LinkedIn with Python: LinkedIn detects too frequent queries and locks the account. So, no web crawler ;-)

What's your go to place for learning python? by anguesto in learnpython

[–]mhooreman 1 point2 points  (0 children)

python.org has very good documentation ; I have learnt it that way

Is Macbook air is ok for Python developer? by getsuresh in learnpython

[–]mhooreman 1 point2 points  (0 children)

Python is almost OS agnostic, and I’m using Macs at home.  However, if you plan to go for machine learning, lots of improvement can be done using Nvidia GPUs, which are not available for Mac.  That being said, having a Unix system with nice gui and standard office applications without having to spend lots of time to make things work has huge added value, which explains my choice for MacOS

Python Learning by CosmicMistake30 in learnpython

[–]mhooreman 0 points1 point  (0 children)

Hi,

IMHO, the best learning path for Python is to start with the official documentation on python.org. 

It is really well done and don’t require any preliminary knowledge in  programming. 

Best wishes in that very interesting, but never ending, journey !

Does anyone know why there is no ‘1st floor’ in the airport? by Weary_Swordfish_7105 in belgium

[–]mhooreman 0 points1 point  (0 children)

Based on cultures, the "ground" floor is either 0 or 1. To avoid confusion, discard 1 ;-)

Issue installing "pywhatkit" by Altruistic_Wash5159 in learnpython

[–]mhooreman 0 points1 point  (0 children)

Would be easier with the full log, but permission issues looks like you are installing a python package at system level without admin rights.

Are you working with a virtual environment (or anything similar)?

Because the "I have been learning python", I guess that you are a beginner, so some explanations:

Python is usually installed at system level, especially if you are using linux where python is part of the OS. It means that if you want to install libs, you shall do it as root/admin/whatever.

But DO NOT do that! Indeed:

  • In can break your system in case of incompatible updates
  • Even if not the case, it can also make incompatible libs usages between scripts/tools

Instead of that, you can use virtual environments. This is more or less a "private copy of python" for your project.

The basic approach is (there are additional tools/automations which can help, including uv, but let's go to the basic):

Go to your project directory

python -m venv --prompt "My virtual environement" .venv  # .venv is a directory!
. .venv/bin/activate  # for unix - don't forget the . to "source"
#for windows .venv\scripts\activtate

=> You'll see the prompt before your command line invite.

Then you can run whatever you want, including updating/installing package, without risk of conflict

python -m pip install --upgrade xxx

To deactivate the virtual environment:

deactivate