Ankündigung

Einklappen
Keine Ankündigung bisher.

vscode: auf dem Laufenden bleiben mit dem editor - als standalone resp. Anaconda-Teil

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • vscode: auf dem Laufenden bleiben mit dem editor - als standalone resp. Anaconda-Teil

    hallo Community,


    Wie haltet Ihr VSCode auf dem neuesten Stand - auf einem Linux-Notebook - und zwar in einer Anaconda Umgebung?
    Also auf einer - mittlerweile schon vor ein paar Monaten installierten Anaconda sind die Entwiklungstools wie


    - Spyder (Version 4.0.0 )
    - VSCode (Version 1.52.0 )
    etc. etx.


    bereits etwas veraltet,. Wie haltet ihr denn diese Systeme auf dem Laufenden!? -

    a. über die VSCode-interne (Bordmittel)-Funktion!?





    - oder ggf. über Conda!?

    im Sinne von -

    ich installiere conda und versuche das dann über - die Kommandos:

    conda install etc. etx


    vgl: http://docs.anaconda.com/anaconda/user-guide/tasks/install-packages/
    PHP-Code:
    conda install package-name=2.3.4 -n some-environment 
    If the package is specific to a Python version, conda uses the version installed in the current or named environment. For details on versions, dependencies and channels, see Conda FAQ and Conda Troubleshooting. Installing packages on a non-networked (air-gapped) computer To directly install a conda package from your local computer, run:
    PHP-Code:
    conda install /package-path/package-filename.tar.bz2 
    ....und weil Anaconda ja "channeled" ist geht das dann etwa so:

    uninstalled Spyder and then install with the line:


    conda install spyder

    and Spyder 5.0.0 was successfully installed.

    Anaconda's Spyder page (https://anaconda.org/anaconda/spyder) gave the command as:

    conda install -c anaconda spyder

    which led to the installation of Spyder 4.0.1, instead of 5.0.0 which was what it was supposed to install as documented on the page itself.
    vgl. https://stackoverflow.com/questions/...sion-of-spyder


    ich denke dass die letzte Version wohl am weitesten führt. So müsste das gehen - wegen der sogenannten channeled Anaconda-Services

    update: bei einer Suche habe ich noch ein paar mögliche Antworten zum Thema gefunden - hier: https://stackoverflow.com/questions/...pdate-anaconda

    Why updating the Anaconda package is almost always a bad idea
    In most cases updating the Anaconda package in the package list will have a surprising result: you may actually downgrade many packages (in fact, this is likely if it indicates the version as custom). The gist above provides details.


    Leverage conda environments

    Your base environment is probably not a good place to try and manage an exact set of packages: it is going to be a dynamic working space with new packages installed and packages randomly updated. If you need an exact set of packages then create a conda environment to hold them. Thanks to the conda package cache and the way file linking is used doing this is typically i) fast and ii) consumes very little additional disk space. E.g

    conda documentation: https://conda.io/docs/using/envs.html


    pip, PyPI, and setuptools?

    None of this is going to help with updating packages that have been installed from PyPI via pip or any packages installed using python setup.py install. conda list will give you some hints about the pip-based Python packages you have in an environment, but it won't do anything special to update them.




    Commercial use of Anaconda or Anaconda Enterprise

    It is pretty much exactly the same story, with the exception that you may not be able to update the base environment if it was installed by someone else (say to /opt/anaconda/latest). If you're not able to update the environments you are using you should be able to clone and then update:


    PHP-Code:
      conda create -n myenv --clone base conda update -n myenv --all 


    To update your installed version to the latest version, say 2019.07, run:



    PHP-Code:
    conda install anaconda=2019.07 
    .. und darüber hinaus

    PHP-Code:
    conda create -n py37 -c anaconda anaconda=5.3.1  conda env export -n py37 --file env.yaml 
    mehr hier: https://stackoverflow.com/questions/...pdate-anaconda

    Ich wede mal sehen wie weit ich mit Conda und dem Conda-Ansatz komme und die Anaconda-Channels ausprobieren - inwieweit ich hier weiterkomme. VG

    update: zumindest auf Spyder und die Update-Versuche dort trifft zu dass es die Channeling-Umstände bei Anaconda sind - die hier verantwortlich sind.


    vgl. Why is Conda not installing/updating the latest version of Spyder?
    https://stackoverflow.com/questions/...sion-of-spyder

    But those bug reports and "solutions" were made one year ago. Spyder is on later versions now.
    Why is conda still installing Spyder version 4.0.1, with all the issues, one year after 4.0.1 is known to be problematic? Why does it not update correctly to any later version? The latest version is supposed to be 5.0.0, with even 4.2.* rolled out before that.


    The problem is with the Anaconda channel.

    I uninstalled Spyder and then install with the line:

    conda install spyder
    and Spyder 5.0.0 was successfully installed.

    Anaconda's Spyder page (https://anaconda.org/anaconda/spyder) gave the command as:

    conda install -c anaconda spyder
    which led to the installation of Spyder 4.0.1, instead of 5.0.0 which was what it was supposed to install as documented on the page itself.
    vgl https://stackoverflow.com/questions/...sion-of-spyder

  • #2
    Kommt drauf an, wie die Apps installiert wurden. snap oder apt?

    Kommentar


    • #3
      Anaconda kenne ich nicht. Python sagt mir was, habe damit aber kaum etwas zu tun. VS Code installiere ich unter Windows direkt von Microsoft. Dann kann man automatisch die Update-Funktion nutzen. Unter Linux nutze ich VS Code auch von Microsoft bereitgestellte Repository, https://code.visualstudio.com/docs/setup/linux

      Generell versuche ich immer Software vom Hersteller direkt zu beziehen. Meist klappt das sehr gut. Bei zwischen Anbietern(Distributionen) wie diese Anaconda für Python, hat man zwar ein großes Paket das Software beinhaltet, welche auf einander abgestimmt ist, dafür kann es schon dauern bis Pakete aktualisiert werden. Ich sehe keinen Grund VS Code über irgendwelchen Distributor zu beziehen.

      Kommentar


      • #4
        Zitat von pregmatch Beitrag anzeigen
        Wie haltet Ihr VSCode auf dem neuesten Stand - auf einem Linux-Notebook - und zwar in einer Anaconda Umgebung?
        Also auf einer - mittlerweile schon vor ein paar Monaten installierten Anaconda sind die Entwiklungstools wie


        - Spyder (Version 4.0.0 )
        - VSCode (Version 1.52.0 )
        Und ein conda update spyder tut es nicht? Warum installiest du das auch über anaconda?

        Wenn du bei vscode den "offiziellen" weg nimmst, übernimmt das der Packagemanger deines Systems. https://code.visualstudio.com/docs/setup/linux
        Von spyder hab ich keine Ahnung. Ich benutzt pycharm und dort übernimmt es die jetbrains toolbox. (Ich seh grade bei spyder ist anacoda the way to go... also einfach "conda update spyder". Das mit Abhängigkeiten bei spyder dürfte eher nicht das Problem sein.)

        Kommentar

        Lädt...
        X