Error: could not determine PostgreSQL version from '10.4'












3














getting error while installing uniq



Error message:



Downloading https://engci-maven-master.cisco.com/artifactory/api/pypi/apic-em-pypi-group/packages/86/fd/cc8315be63a41fe000cce20482a917e874cdc1151e62cb0141f5e55f711e/psycopg2-2.6.1.tar.gz (371kB)
100% |u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588| 378kB 458kB/s
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/psycopg2.egg-info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
Error: could not determine PostgreSQL version from '10.4'


----------------------------------------


Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-_cf1z03a/psycopg2/



Ubuntu 18.04



how can i install correctly



Command used:

pip3 install uniq==2.1.22.* --no-cache-dir --index-url=https://engci-maven-master.cisco.com/artifactory/api/pypi/apic-em-pypi-group/simple










share|improve this question
























  • Well it says it's running python setup.py egg_info, so presumably from what is said below that's running python3 instead of python2.7. So perhaps check with ls -al $(which python). Then if it's going to python3, route the soft-link to python2.7 (temporarily) to run the script?
    – pbhj
    Aug 14 '18 at 21:28
















3














getting error while installing uniq



Error message:



Downloading https://engci-maven-master.cisco.com/artifactory/api/pypi/apic-em-pypi-group/packages/86/fd/cc8315be63a41fe000cce20482a917e874cdc1151e62cb0141f5e55f711e/psycopg2-2.6.1.tar.gz (371kB)
100% |u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588| 378kB 458kB/s
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/psycopg2.egg-info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
Error: could not determine PostgreSQL version from '10.4'


----------------------------------------


Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-_cf1z03a/psycopg2/



Ubuntu 18.04



how can i install correctly



Command used:

pip3 install uniq==2.1.22.* --no-cache-dir --index-url=https://engci-maven-master.cisco.com/artifactory/api/pypi/apic-em-pypi-group/simple










share|improve this question
























  • Well it says it's running python setup.py egg_info, so presumably from what is said below that's running python3 instead of python2.7. So perhaps check with ls -al $(which python). Then if it's going to python3, route the soft-link to python2.7 (temporarily) to run the script?
    – pbhj
    Aug 14 '18 at 21:28














3












3








3







getting error while installing uniq



Error message:



Downloading https://engci-maven-master.cisco.com/artifactory/api/pypi/apic-em-pypi-group/packages/86/fd/cc8315be63a41fe000cce20482a917e874cdc1151e62cb0141f5e55f711e/psycopg2-2.6.1.tar.gz (371kB)
100% |u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588| 378kB 458kB/s
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/psycopg2.egg-info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
Error: could not determine PostgreSQL version from '10.4'


----------------------------------------


Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-_cf1z03a/psycopg2/



Ubuntu 18.04



how can i install correctly



Command used:

pip3 install uniq==2.1.22.* --no-cache-dir --index-url=https://engci-maven-master.cisco.com/artifactory/api/pypi/apic-em-pypi-group/simple










share|improve this question















getting error while installing uniq



Error message:



Downloading https://engci-maven-master.cisco.com/artifactory/api/pypi/apic-em-pypi-group/packages/86/fd/cc8315be63a41fe000cce20482a917e874cdc1151e62cb0141f5e55f711e/psycopg2-2.6.1.tar.gz (371kB)
100% |u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588u2588| 378kB 458kB/s
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/psycopg2.egg-info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
Error: could not determine PostgreSQL version from '10.4'


----------------------------------------


Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-_cf1z03a/psycopg2/



Ubuntu 18.04



how can i install correctly



Command used:

pip3 install uniq==2.1.22.* --no-cache-dir --index-url=https://engci-maven-master.cisco.com/artifactory/api/pypi/apic-em-pypi-group/simple







python3 postgresql python-2.7






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 10 '18 at 11:12









WinEunuuchs2Unix

44.5k1079169




44.5k1079169










asked Jul 24 '18 at 15:17









Balaji JLNBalaji JLN

162




162












  • Well it says it's running python setup.py egg_info, so presumably from what is said below that's running python3 instead of python2.7. So perhaps check with ls -al $(which python). Then if it's going to python3, route the soft-link to python2.7 (temporarily) to run the script?
    – pbhj
    Aug 14 '18 at 21:28


















  • Well it says it's running python setup.py egg_info, so presumably from what is said below that's running python3 instead of python2.7. So perhaps check with ls -al $(which python). Then if it's going to python3, route the soft-link to python2.7 (temporarily) to run the script?
    – pbhj
    Aug 14 '18 at 21:28
















Well it says it's running python setup.py egg_info, so presumably from what is said below that's running python3 instead of python2.7. So perhaps check with ls -al $(which python). Then if it's going to python3, route the soft-link to python2.7 (temporarily) to run the script?
– pbhj
Aug 14 '18 at 21:28




Well it says it's running python setup.py egg_info, so presumably from what is said below that's running python3 instead of python2.7. So perhaps check with ls -al $(which python). Then if it's going to python3, route the soft-link to python2.7 (temporarily) to run the script?
– pbhj
Aug 14 '18 at 21:28










1 Answer
1






active

oldest

votes


















0














The error message is due to pip using Python version 3 and Ubuntu having python version 2.7 installed. Many users report errors here.



The most common solution is to first use:



sudo pip install --upgrade setuptools


Note: Some report success using pip whilst others used pip3 as the above command does.



Read the entire link for all possible solutions.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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%2faskubuntu.com%2fquestions%2f1059057%2ferror-could-not-determine-postgresql-version-from-10-4%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 error message is due to pip using Python version 3 and Ubuntu having python version 2.7 installed. Many users report errors here.



    The most common solution is to first use:



    sudo pip install --upgrade setuptools


    Note: Some report success using pip whilst others used pip3 as the above command does.



    Read the entire link for all possible solutions.






    share|improve this answer




























      0














      The error message is due to pip using Python version 3 and Ubuntu having python version 2.7 installed. Many users report errors here.



      The most common solution is to first use:



      sudo pip install --upgrade setuptools


      Note: Some report success using pip whilst others used pip3 as the above command does.



      Read the entire link for all possible solutions.






      share|improve this answer


























        0












        0








        0






        The error message is due to pip using Python version 3 and Ubuntu having python version 2.7 installed. Many users report errors here.



        The most common solution is to first use:



        sudo pip install --upgrade setuptools


        Note: Some report success using pip whilst others used pip3 as the above command does.



        Read the entire link for all possible solutions.






        share|improve this answer














        The error message is due to pip using Python version 3 and Ubuntu having python version 2.7 installed. Many users report errors here.



        The most common solution is to first use:



        sudo pip install --upgrade setuptools


        Note: Some report success using pip whilst others used pip3 as the above command does.



        Read the entire link for all possible solutions.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 6 at 6:14









        Pablo Bianchi

        2,4251529




        2,4251529










        answered Aug 10 '18 at 11:28









        WinEunuuchs2UnixWinEunuuchs2Unix

        44.5k1079169




        44.5k1079169






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • 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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2faskubuntu.com%2fquestions%2f1059057%2ferror-could-not-determine-postgresql-version-from-10-4%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

            How did Captain America manage to do this?

            迪纳利

            南乌拉尔铁路局