Package installation in Pycharm using Conda will not work












1















This forum has helped me so much in the past months but now it was time to post something myself because this is the first problem i was not able to find an answer for. I would really appreciate any help i can get. I must mention that i am not an expert in python or programming, i have 3 months of intensive experience now and am working with python for my thesis on a uni computer with windows 7. I do not have any administrator rights so there will be some things i can not change.



I am using Pycharm 2018 with python 3.6 and anaconda 3.



For my project i need the netCDF4 and Basemap packages which are not already installed. However when i try to install these packages using Conda in the project interpreter settings i am not able to install any package. Even upgrading already installed packages gives the same problem. It gives me the following errors




intallError : Error: one or more of the packages already installed depend on '>conda'



Fetching package metadata .............
.Solving package specifications: .



InstallError: Error: one or more of the packages already installed depend on 'conda'
and should only be installed in the root environment: conda conda-build conda-env
These packages need to be removed before conda can proceed.




I would really like your help, i already tried to install using pip in the console but this doesn't work because the pip version is 9 and the newest is 18. I am not an expert and could not find any solutions which might help so apart from pip i haven't really tried anything except the usual reinstalling of pycharm and rebooting. I have done the same on my laptop and everything worked fine, but my laptop is too slow to run the software properly so i need to use a uni pc.










share|improve this question























  • Go to the Pycharm Terminal and type conda install -c anaconda netcdf4 . I have experienced trouble installing basemap a few weeks back. Try: conda install -c conda-forge basemap (also in the PyCharm terminal)

    – Eskapp
    Nov 15 '18 at 15:09











  • Thank you so much, that worked for me

    – lucjuh8
    Nov 16 '18 at 9:35
















1















This forum has helped me so much in the past months but now it was time to post something myself because this is the first problem i was not able to find an answer for. I would really appreciate any help i can get. I must mention that i am not an expert in python or programming, i have 3 months of intensive experience now and am working with python for my thesis on a uni computer with windows 7. I do not have any administrator rights so there will be some things i can not change.



I am using Pycharm 2018 with python 3.6 and anaconda 3.



For my project i need the netCDF4 and Basemap packages which are not already installed. However when i try to install these packages using Conda in the project interpreter settings i am not able to install any package. Even upgrading already installed packages gives the same problem. It gives me the following errors




intallError : Error: one or more of the packages already installed depend on '>conda'



Fetching package metadata .............
.Solving package specifications: .



InstallError: Error: one or more of the packages already installed depend on 'conda'
and should only be installed in the root environment: conda conda-build conda-env
These packages need to be removed before conda can proceed.




I would really like your help, i already tried to install using pip in the console but this doesn't work because the pip version is 9 and the newest is 18. I am not an expert and could not find any solutions which might help so apart from pip i haven't really tried anything except the usual reinstalling of pycharm and rebooting. I have done the same on my laptop and everything worked fine, but my laptop is too slow to run the software properly so i need to use a uni pc.










share|improve this question























  • Go to the Pycharm Terminal and type conda install -c anaconda netcdf4 . I have experienced trouble installing basemap a few weeks back. Try: conda install -c conda-forge basemap (also in the PyCharm terminal)

    – Eskapp
    Nov 15 '18 at 15:09











  • Thank you so much, that worked for me

    – lucjuh8
    Nov 16 '18 at 9:35














1












1








1








This forum has helped me so much in the past months but now it was time to post something myself because this is the first problem i was not able to find an answer for. I would really appreciate any help i can get. I must mention that i am not an expert in python or programming, i have 3 months of intensive experience now and am working with python for my thesis on a uni computer with windows 7. I do not have any administrator rights so there will be some things i can not change.



I am using Pycharm 2018 with python 3.6 and anaconda 3.



For my project i need the netCDF4 and Basemap packages which are not already installed. However when i try to install these packages using Conda in the project interpreter settings i am not able to install any package. Even upgrading already installed packages gives the same problem. It gives me the following errors




intallError : Error: one or more of the packages already installed depend on '>conda'



Fetching package metadata .............
.Solving package specifications: .



InstallError: Error: one or more of the packages already installed depend on 'conda'
and should only be installed in the root environment: conda conda-build conda-env
These packages need to be removed before conda can proceed.




I would really like your help, i already tried to install using pip in the console but this doesn't work because the pip version is 9 and the newest is 18. I am not an expert and could not find any solutions which might help so apart from pip i haven't really tried anything except the usual reinstalling of pycharm and rebooting. I have done the same on my laptop and everything worked fine, but my laptop is too slow to run the software properly so i need to use a uni pc.










share|improve this question














This forum has helped me so much in the past months but now it was time to post something myself because this is the first problem i was not able to find an answer for. I would really appreciate any help i can get. I must mention that i am not an expert in python or programming, i have 3 months of intensive experience now and am working with python for my thesis on a uni computer with windows 7. I do not have any administrator rights so there will be some things i can not change.



I am using Pycharm 2018 with python 3.6 and anaconda 3.



For my project i need the netCDF4 and Basemap packages which are not already installed. However when i try to install these packages using Conda in the project interpreter settings i am not able to install any package. Even upgrading already installed packages gives the same problem. It gives me the following errors




intallError : Error: one or more of the packages already installed depend on '>conda'



Fetching package metadata .............
.Solving package specifications: .



InstallError: Error: one or more of the packages already installed depend on 'conda'
and should only be installed in the root environment: conda conda-build conda-env
These packages need to be removed before conda can proceed.




I would really like your help, i already tried to install using pip in the console but this doesn't work because the pip version is 9 and the newest is 18. I am not an expert and could not find any solutions which might help so apart from pip i haven't really tried anything except the usual reinstalling of pycharm and rebooting. I have done the same on my laptop and everything worked fine, but my laptop is too slow to run the software properly so i need to use a uni pc.







python pip pycharm package conda






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 15 '18 at 8:19









lucjuh8lucjuh8

83




83













  • Go to the Pycharm Terminal and type conda install -c anaconda netcdf4 . I have experienced trouble installing basemap a few weeks back. Try: conda install -c conda-forge basemap (also in the PyCharm terminal)

    – Eskapp
    Nov 15 '18 at 15:09











  • Thank you so much, that worked for me

    – lucjuh8
    Nov 16 '18 at 9:35



















  • Go to the Pycharm Terminal and type conda install -c anaconda netcdf4 . I have experienced trouble installing basemap a few weeks back. Try: conda install -c conda-forge basemap (also in the PyCharm terminal)

    – Eskapp
    Nov 15 '18 at 15:09











  • Thank you so much, that worked for me

    – lucjuh8
    Nov 16 '18 at 9:35

















Go to the Pycharm Terminal and type conda install -c anaconda netcdf4 . I have experienced trouble installing basemap a few weeks back. Try: conda install -c conda-forge basemap (also in the PyCharm terminal)

– Eskapp
Nov 15 '18 at 15:09





Go to the Pycharm Terminal and type conda install -c anaconda netcdf4 . I have experienced trouble installing basemap a few weeks back. Try: conda install -c conda-forge basemap (also in the PyCharm terminal)

– Eskapp
Nov 15 '18 at 15:09













Thank you so much, that worked for me

– lucjuh8
Nov 16 '18 at 9:35





Thank you so much, that worked for me

– lucjuh8
Nov 16 '18 at 9:35












1 Answer
1






active

oldest

votes


















0














The interface for installing packages in the Settings of PyCharm does not work very well from my personal experience.



Safest and simplest way for beginners with Anaconda3 and PyCharm to install new packages is to use the embedded terminal within PyCharm.



Look up online, in the official website, which channel the package needs to be downloaded from (you can also see the most recent available version for your OS). The channel is the "place" it needs to download from. It is the argument we pass after the -c in the installation command.
Example: https://anaconda.org/anaconda/netcdf4



This webpage tells us to install the package using conda install -c anaconda netcdf4 (from the anaconda channel)



When using the embedded PyCharm terminal, we do not need to worry about the environment in which the package needs to be installed. By default, it is installed in the environment chosen for the project.



Repeating the same process for basemap leads to use the following command to install it: conda install -c conda-forge basemap (This time it comes from the conda-forge channel.)



Edit: This answer assumes the user to use a conda environment.






share|improve this answer

























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    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',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53315045%2fpackage-installation-in-pycharm-using-conda-will-not-work%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    The interface for installing packages in the Settings of PyCharm does not work very well from my personal experience.



    Safest and simplest way for beginners with Anaconda3 and PyCharm to install new packages is to use the embedded terminal within PyCharm.



    Look up online, in the official website, which channel the package needs to be downloaded from (you can also see the most recent available version for your OS). The channel is the "place" it needs to download from. It is the argument we pass after the -c in the installation command.
    Example: https://anaconda.org/anaconda/netcdf4



    This webpage tells us to install the package using conda install -c anaconda netcdf4 (from the anaconda channel)



    When using the embedded PyCharm terminal, we do not need to worry about the environment in which the package needs to be installed. By default, it is installed in the environment chosen for the project.



    Repeating the same process for basemap leads to use the following command to install it: conda install -c conda-forge basemap (This time it comes from the conda-forge channel.)



    Edit: This answer assumes the user to use a conda environment.






    share|improve this answer






























      0














      The interface for installing packages in the Settings of PyCharm does not work very well from my personal experience.



      Safest and simplest way for beginners with Anaconda3 and PyCharm to install new packages is to use the embedded terminal within PyCharm.



      Look up online, in the official website, which channel the package needs to be downloaded from (you can also see the most recent available version for your OS). The channel is the "place" it needs to download from. It is the argument we pass after the -c in the installation command.
      Example: https://anaconda.org/anaconda/netcdf4



      This webpage tells us to install the package using conda install -c anaconda netcdf4 (from the anaconda channel)



      When using the embedded PyCharm terminal, we do not need to worry about the environment in which the package needs to be installed. By default, it is installed in the environment chosen for the project.



      Repeating the same process for basemap leads to use the following command to install it: conda install -c conda-forge basemap (This time it comes from the conda-forge channel.)



      Edit: This answer assumes the user to use a conda environment.






      share|improve this answer




























        0












        0








        0







        The interface for installing packages in the Settings of PyCharm does not work very well from my personal experience.



        Safest and simplest way for beginners with Anaconda3 and PyCharm to install new packages is to use the embedded terminal within PyCharm.



        Look up online, in the official website, which channel the package needs to be downloaded from (you can also see the most recent available version for your OS). The channel is the "place" it needs to download from. It is the argument we pass after the -c in the installation command.
        Example: https://anaconda.org/anaconda/netcdf4



        This webpage tells us to install the package using conda install -c anaconda netcdf4 (from the anaconda channel)



        When using the embedded PyCharm terminal, we do not need to worry about the environment in which the package needs to be installed. By default, it is installed in the environment chosen for the project.



        Repeating the same process for basemap leads to use the following command to install it: conda install -c conda-forge basemap (This time it comes from the conda-forge channel.)



        Edit: This answer assumes the user to use a conda environment.






        share|improve this answer















        The interface for installing packages in the Settings of PyCharm does not work very well from my personal experience.



        Safest and simplest way for beginners with Anaconda3 and PyCharm to install new packages is to use the embedded terminal within PyCharm.



        Look up online, in the official website, which channel the package needs to be downloaded from (you can also see the most recent available version for your OS). The channel is the "place" it needs to download from. It is the argument we pass after the -c in the installation command.
        Example: https://anaconda.org/anaconda/netcdf4



        This webpage tells us to install the package using conda install -c anaconda netcdf4 (from the anaconda channel)



        When using the embedded PyCharm terminal, we do not need to worry about the environment in which the package needs to be installed. By default, it is installed in the environment chosen for the project.



        Repeating the same process for basemap leads to use the following command to install it: conda install -c conda-forge basemap (This time it comes from the conda-forge channel.)



        Edit: This answer assumes the user to use a conda environment.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 14 '18 at 19:09

























        answered Nov 19 '18 at 18:33









        EskappEskapp

        1,3431023




        1,3431023
































            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53315045%2fpackage-installation-in-pycharm-using-conda-will-not-work%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Xamarin.iOS Cant Deploy on Iphone

            Glorious Revolution

            Dulmage-Mendelsohn matrix decomposition in Python