auf einem Linux-system will ich vscode und miniconda aufsetzen.
in einem Manual hab ich eine Anleitung gefunden -: https://engineeringfordatascience.com/p ... mand_line/
Diese wägt auch nochmals die diversen Vor und Nachteile ab - und vergleicht Anaconda u. Miniconda:
I would always recommend using Miniconda. Anaconda is very bloated and contains many libraries which you are unlikely to use, especially not in a single project. Given installing a library is only a ‘pip install’ away, it is easy to use Miniconda and only install libraries as and when you need them. I also believe it is better practice to make sure your environment is as ‘lean’ as possible, containing only the packages your project directly depends on.
There are alternative package managers for Python instead of Conda. Personally, I prefer to use pyenv for managing my python environments. It is lightweight, portable, simple to use and I also find pyenv has fewer ‘gotchas’ than conda. However, sometimes you do not have the luxury of choosing your preferred environment manager. For example, if your project requires a version of a Python library only available from conda-forge , or if your team prefer using a specific package manager for consistency.
It is always a good idea to be comfortable with multiple different package managers so you are flexible to your team’s or project requirements.
und der Autor fährt fort: Why Use the Command-Line?
in dem er einige Vorteile erläutert:
im Einzelnen:Installing Miniconda from the command line opens the door for automation.: Automating the set-up of your development environment is a key part of becoming an effective programmer. Automation provides the following direct and indirect benefits:
Also das letzte Argument finde ich sehr einleuchtend bzw. attraktiv - den ich glaube dass es ja auch zu diversen Abhängikeiten u. Fallen kommen kann - u. man sehr gut mit venv, pyvenv etc. etx umgehen können muss um nicht in eine "Abhängigkeits-Hölle" zu geraten.Seamlessly move across different machines – get up and running quickly when working on a new machine, such as spinning up a Cloud VM or a new company laptop, instead of manually trying to install software
Consistency – running the same script to install software on different computers will ensure you are running a consistent environment and help to avoid errors when installing the software
Reproducibility – share your scripts with co-workers to ensure you are both working from the same environment (Dockerfiles are also a good option)
‘Clean Slate’ – when you inevitably accidentally break your environment (I am very guilty of this), you can easily remove everything and reinstall to restore the original state
btw: der Autor empfiehlt den Einsatz von pyenv -
Ist denn - wenn man so ansetzt - es besonders aufwändig - dann auchThere are alternative package managers for Python instead of Conda. Personally, I prefer to use pyenv for managing my python environments. It is lightweight, portable, simple to use and I also find pyenv has fewer ‘gotchas’ than conda.
a. spyder und
b. vscode in dieses Setup noch mit einzubinden.
Viele Fragen auf einmal - sorry wenn die alle aufs Mal kommen u. ggf. etwas viel für einen einzigen Thread sein könnten.
VG
what would you recommend!?