Installed Anaconda -> strange behavior with DNF

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I am using Fedora 26.



Since I installed Anaconda, if I type in Terminal something like



sudo dnf install gnome[TAB]


I get



Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'dnf'

zsh: do you wish to see all 313 possibilities (317 lines)?


Any idea what could have happened? It has something to do with python I guess...



UPDATE:
When I removed Anaconda from the path, i get following message:



➜ ~ sudo dnf install gnomezsh: sqlite3: command not found...
Install package 'sqlite' to provide command 'sqlite3'? [N/y]


I should also mention that I am using zsh with oh-my/zsh.







share|improve this question






















  • What are you trying to install actually?
    – imvpn22
    Nov 17 '17 at 3:47










  • It's not about what I am trying to install... Whatever I would like to install, I get the same, strange, behavior...
    – Leta
    Nov 17 '17 at 7:55










  • It seems that you have broken dnf. Did you uninstall python?
    – imvpn22
    Nov 17 '17 at 13:16










  • There is an old question with similar problem.
    – imvpn22
    Nov 17 '17 at 13:22














up vote
1
down vote

favorite












I am using Fedora 26.



Since I installed Anaconda, if I type in Terminal something like



sudo dnf install gnome[TAB]


I get



Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'dnf'

zsh: do you wish to see all 313 possibilities (317 lines)?


Any idea what could have happened? It has something to do with python I guess...



UPDATE:
When I removed Anaconda from the path, i get following message:



➜ ~ sudo dnf install gnomezsh: sqlite3: command not found...
Install package 'sqlite' to provide command 'sqlite3'? [N/y]


I should also mention that I am using zsh with oh-my/zsh.







share|improve this question






















  • What are you trying to install actually?
    – imvpn22
    Nov 17 '17 at 3:47










  • It's not about what I am trying to install... Whatever I would like to install, I get the same, strange, behavior...
    – Leta
    Nov 17 '17 at 7:55










  • It seems that you have broken dnf. Did you uninstall python?
    – imvpn22
    Nov 17 '17 at 13:16










  • There is an old question with similar problem.
    – imvpn22
    Nov 17 '17 at 13:22












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I am using Fedora 26.



Since I installed Anaconda, if I type in Terminal something like



sudo dnf install gnome[TAB]


I get



Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'dnf'

zsh: do you wish to see all 313 possibilities (317 lines)?


Any idea what could have happened? It has something to do with python I guess...



UPDATE:
When I removed Anaconda from the path, i get following message:



➜ ~ sudo dnf install gnomezsh: sqlite3: command not found...
Install package 'sqlite' to provide command 'sqlite3'? [N/y]


I should also mention that I am using zsh with oh-my/zsh.







share|improve this question














I am using Fedora 26.



Since I installed Anaconda, if I type in Terminal something like



sudo dnf install gnome[TAB]


I get



Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'dnf'

zsh: do you wish to see all 313 possibilities (317 lines)?


Any idea what could have happened? It has something to do with python I guess...



UPDATE:
When I removed Anaconda from the path, i get following message:



➜ ~ sudo dnf install gnomezsh: sqlite3: command not found...
Install package 'sqlite' to provide command 'sqlite3'? [N/y]


I should also mention that I am using zsh with oh-my/zsh.









share|improve this question













share|improve this question




share|improve this question








edited Nov 11 '17 at 11:42

























asked Nov 10 '17 at 20:06









Leta

244




244











  • What are you trying to install actually?
    – imvpn22
    Nov 17 '17 at 3:47










  • It's not about what I am trying to install... Whatever I would like to install, I get the same, strange, behavior...
    – Leta
    Nov 17 '17 at 7:55










  • It seems that you have broken dnf. Did you uninstall python?
    – imvpn22
    Nov 17 '17 at 13:16










  • There is an old question with similar problem.
    – imvpn22
    Nov 17 '17 at 13:22
















  • What are you trying to install actually?
    – imvpn22
    Nov 17 '17 at 3:47










  • It's not about what I am trying to install... Whatever I would like to install, I get the same, strange, behavior...
    – Leta
    Nov 17 '17 at 7:55










  • It seems that you have broken dnf. Did you uninstall python?
    – imvpn22
    Nov 17 '17 at 13:16










  • There is an old question with similar problem.
    – imvpn22
    Nov 17 '17 at 13:22















What are you trying to install actually?
– imvpn22
Nov 17 '17 at 3:47




What are you trying to install actually?
– imvpn22
Nov 17 '17 at 3:47












It's not about what I am trying to install... Whatever I would like to install, I get the same, strange, behavior...
– Leta
Nov 17 '17 at 7:55




It's not about what I am trying to install... Whatever I would like to install, I get the same, strange, behavior...
– Leta
Nov 17 '17 at 7:55












It seems that you have broken dnf. Did you uninstall python?
– imvpn22
Nov 17 '17 at 13:16




It seems that you have broken dnf. Did you uninstall python?
– imvpn22
Nov 17 '17 at 13:16












There is an old question with similar problem.
– imvpn22
Nov 17 '17 at 13:22




There is an old question with similar problem.
– imvpn22
Nov 17 '17 at 13:22










1 Answer
1






active

oldest

votes

















up vote
1
down vote













This is a bug in zsh. Change the instances of python2 and python3 in /usr/share/zsh/5.*your_version*/functions/_dnf to /usr/bin/python2and /usr/bin/python3 respectively.



This solved my problem. Big thanks to https://github.com/ContinuumIO/anaconda-issues/issues/886






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f403815%2finstalled-anaconda-strange-behavior-with-dnf%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    This is a bug in zsh. Change the instances of python2 and python3 in /usr/share/zsh/5.*your_version*/functions/_dnf to /usr/bin/python2and /usr/bin/python3 respectively.



    This solved my problem. Big thanks to https://github.com/ContinuumIO/anaconda-issues/issues/886






    share|improve this answer
























      up vote
      1
      down vote













      This is a bug in zsh. Change the instances of python2 and python3 in /usr/share/zsh/5.*your_version*/functions/_dnf to /usr/bin/python2and /usr/bin/python3 respectively.



      This solved my problem. Big thanks to https://github.com/ContinuumIO/anaconda-issues/issues/886






      share|improve this answer






















        up vote
        1
        down vote










        up vote
        1
        down vote









        This is a bug in zsh. Change the instances of python2 and python3 in /usr/share/zsh/5.*your_version*/functions/_dnf to /usr/bin/python2and /usr/bin/python3 respectively.



        This solved my problem. Big thanks to https://github.com/ContinuumIO/anaconda-issues/issues/886






        share|improve this answer












        This is a bug in zsh. Change the instances of python2 and python3 in /usr/share/zsh/5.*your_version*/functions/_dnf to /usr/bin/python2and /usr/bin/python3 respectively.



        This solved my problem. Big thanks to https://github.com/ContinuumIO/anaconda-issues/issues/886







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 19 '17 at 18:44









        Pratik Bhangale

        365




        365



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f403815%2finstalled-anaconda-strange-behavior-with-dnf%23new-answer', 'question_page');

            );

            Post as a guest













































































            VnB,uiFK 4n,OO,pd3,3g2pVSosRokZvRZ
            5EZSim rzdLwlLRvJ6,zdeBb3 eudnQJGzkRUMTkx,FZ3f0wBR 74xr8Z,DGMfViT57Fh,IQ

            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            How many registers does an x86_64 CPU actually have?

            Displaying single band from multi-band raster using QGIS