python easy_install or pip errors about sysconfig

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











up vote
2
down vote

favorite












somehow the installation of python is broken in my linux OEL 6.9.



pip or easy_install are broken and I cannot do anything.



i get the same error on both sides:



# easy_install
Traceback (most recent call last):
File "/usr/bin/easy_install", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/site-packages/setuptools-39.2.0-py2.6.egg/pkg_resources/__init__.py", line 947, in <module>
class Environment(object):
File "/usr/lib/python2.6/site-packages/setuptools-39.2.0-py2.6.egg/pkg_resources/__init__.py", line 951, in Environment
self, search_path=None, platform=get_supported_platform(),
File "/usr/lib/python2.6/site-packages/setuptools-39.2.0-py2.6.egg/pkg_resources/__init__.py", line 180, in get_supported_platform
plat = get_build_platform()
File "/usr/lib/python2.6/site-packages/setuptools-39.2.0-py2.6.egg/pkg_resources/__init__.py", line 380, in get_build_platform
from sysconfig import get_platform
ImportError: No module named sysconfig


I removed python-setuptools to no avail.



I think i was trying to update latest version of pyOpenSSL and it crashed and cannot fix.



we are running Oracle enterprise Linux 6.6 in a VM.



how to fix it without resorting to installing python 2.7 which is not included in the official repos



thank you










share|improve this question























  • BTW, Python 2.6 is no longer supported, so security updates are no longer released for it. And Python 2.7 will reach its official End of Life in 2020, so you need to seriously think about migrating to Python 3.
    – PM 2Ring
    May 30 at 11:06











  • Note that sysconfig doesn't exist in Python 2.6. It was introduced in Python 3.2 and backported to 2.7.
    – PM 2Ring
    May 30 at 11:19










  • why is it complaining then that no sysconfig? perhaps it tried to upgrade a module that is not supposed to work on python 2.6 The OS does not offer any other option. how to remove the module causing python to complain about sysconfig.
    – danidar
    May 30 at 11:33










  • What is your setuptools version atm? Did you install python-setuptools back after removal? It is vital for you to have it installed, otherwise you can forget about python packages.
    – hoefling
    May 30 at 11:58










  • Your problem is that setuptools dropped python 2.6 support since version 37, but it looks like you have version 39.2.0 for some reason. This will bork your python dist completely as you won't be able to install or uninstall anything, no matter pip or easy_install. This should be the primary issue to solve right now.
    – hoefling
    May 30 at 12:03














up vote
2
down vote

favorite












somehow the installation of python is broken in my linux OEL 6.9.



pip or easy_install are broken and I cannot do anything.



i get the same error on both sides:



# easy_install
Traceback (most recent call last):
File "/usr/bin/easy_install", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/site-packages/setuptools-39.2.0-py2.6.egg/pkg_resources/__init__.py", line 947, in <module>
class Environment(object):
File "/usr/lib/python2.6/site-packages/setuptools-39.2.0-py2.6.egg/pkg_resources/__init__.py", line 951, in Environment
self, search_path=None, platform=get_supported_platform(),
File "/usr/lib/python2.6/site-packages/setuptools-39.2.0-py2.6.egg/pkg_resources/__init__.py", line 180, in get_supported_platform
plat = get_build_platform()
File "/usr/lib/python2.6/site-packages/setuptools-39.2.0-py2.6.egg/pkg_resources/__init__.py", line 380, in get_build_platform
from sysconfig import get_platform
ImportError: No module named sysconfig


I removed python-setuptools to no avail.



I think i was trying to update latest version of pyOpenSSL and it crashed and cannot fix.



we are running Oracle enterprise Linux 6.6 in a VM.



how to fix it without resorting to installing python 2.7 which is not included in the official repos



thank you










share|improve this question























  • BTW, Python 2.6 is no longer supported, so security updates are no longer released for it. And Python 2.7 will reach its official End of Life in 2020, so you need to seriously think about migrating to Python 3.
    – PM 2Ring
    May 30 at 11:06











  • Note that sysconfig doesn't exist in Python 2.6. It was introduced in Python 3.2 and backported to 2.7.
    – PM 2Ring
    May 30 at 11:19










  • why is it complaining then that no sysconfig? perhaps it tried to upgrade a module that is not supposed to work on python 2.6 The OS does not offer any other option. how to remove the module causing python to complain about sysconfig.
    – danidar
    May 30 at 11:33










  • What is your setuptools version atm? Did you install python-setuptools back after removal? It is vital for you to have it installed, otherwise you can forget about python packages.
    – hoefling
    May 30 at 11:58










  • Your problem is that setuptools dropped python 2.6 support since version 37, but it looks like you have version 39.2.0 for some reason. This will bork your python dist completely as you won't be able to install or uninstall anything, no matter pip or easy_install. This should be the primary issue to solve right now.
    – hoefling
    May 30 at 12:03












up vote
2
down vote

favorite









up vote
2
down vote

favorite











somehow the installation of python is broken in my linux OEL 6.9.



pip or easy_install are broken and I cannot do anything.



i get the same error on both sides:



# easy_install
Traceback (most recent call last):
File "/usr/bin/easy_install", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/site-packages/setuptools-39.2.0-py2.6.egg/pkg_resources/__init__.py", line 947, in <module>
class Environment(object):
File "/usr/lib/python2.6/site-packages/setuptools-39.2.0-py2.6.egg/pkg_resources/__init__.py", line 951, in Environment
self, search_path=None, platform=get_supported_platform(),
File "/usr/lib/python2.6/site-packages/setuptools-39.2.0-py2.6.egg/pkg_resources/__init__.py", line 180, in get_supported_platform
plat = get_build_platform()
File "/usr/lib/python2.6/site-packages/setuptools-39.2.0-py2.6.egg/pkg_resources/__init__.py", line 380, in get_build_platform
from sysconfig import get_platform
ImportError: No module named sysconfig


I removed python-setuptools to no avail.



I think i was trying to update latest version of pyOpenSSL and it crashed and cannot fix.



we are running Oracle enterprise Linux 6.6 in a VM.



how to fix it without resorting to installing python 2.7 which is not included in the official repos



thank you










share|improve this question















somehow the installation of python is broken in my linux OEL 6.9.



pip or easy_install are broken and I cannot do anything.



i get the same error on both sides:



# easy_install
Traceback (most recent call last):
File "/usr/bin/easy_install", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/site-packages/setuptools-39.2.0-py2.6.egg/pkg_resources/__init__.py", line 947, in <module>
class Environment(object):
File "/usr/lib/python2.6/site-packages/setuptools-39.2.0-py2.6.egg/pkg_resources/__init__.py", line 951, in Environment
self, search_path=None, platform=get_supported_platform(),
File "/usr/lib/python2.6/site-packages/setuptools-39.2.0-py2.6.egg/pkg_resources/__init__.py", line 180, in get_supported_platform
plat = get_build_platform()
File "/usr/lib/python2.6/site-packages/setuptools-39.2.0-py2.6.egg/pkg_resources/__init__.py", line 380, in get_build_platform
from sysconfig import get_platform
ImportError: No module named sysconfig


I removed python-setuptools to no avail.



I think i was trying to update latest version of pyOpenSSL and it crashed and cannot fix.



we are running Oracle enterprise Linux 6.6 in a VM.



how to fix it without resorting to installing python 2.7 which is not included in the official repos



thank you







python pip






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 7 mins ago









Joseph R.

27.5k370113




27.5k370113










asked May 30 at 9:14









danidar

213




213











  • BTW, Python 2.6 is no longer supported, so security updates are no longer released for it. And Python 2.7 will reach its official End of Life in 2020, so you need to seriously think about migrating to Python 3.
    – PM 2Ring
    May 30 at 11:06











  • Note that sysconfig doesn't exist in Python 2.6. It was introduced in Python 3.2 and backported to 2.7.
    – PM 2Ring
    May 30 at 11:19










  • why is it complaining then that no sysconfig? perhaps it tried to upgrade a module that is not supposed to work on python 2.6 The OS does not offer any other option. how to remove the module causing python to complain about sysconfig.
    – danidar
    May 30 at 11:33










  • What is your setuptools version atm? Did you install python-setuptools back after removal? It is vital for you to have it installed, otherwise you can forget about python packages.
    – hoefling
    May 30 at 11:58










  • Your problem is that setuptools dropped python 2.6 support since version 37, but it looks like you have version 39.2.0 for some reason. This will bork your python dist completely as you won't be able to install or uninstall anything, no matter pip or easy_install. This should be the primary issue to solve right now.
    – hoefling
    May 30 at 12:03
















  • BTW, Python 2.6 is no longer supported, so security updates are no longer released for it. And Python 2.7 will reach its official End of Life in 2020, so you need to seriously think about migrating to Python 3.
    – PM 2Ring
    May 30 at 11:06











  • Note that sysconfig doesn't exist in Python 2.6. It was introduced in Python 3.2 and backported to 2.7.
    – PM 2Ring
    May 30 at 11:19










  • why is it complaining then that no sysconfig? perhaps it tried to upgrade a module that is not supposed to work on python 2.6 The OS does not offer any other option. how to remove the module causing python to complain about sysconfig.
    – danidar
    May 30 at 11:33










  • What is your setuptools version atm? Did you install python-setuptools back after removal? It is vital for you to have it installed, otherwise you can forget about python packages.
    – hoefling
    May 30 at 11:58










  • Your problem is that setuptools dropped python 2.6 support since version 37, but it looks like you have version 39.2.0 for some reason. This will bork your python dist completely as you won't be able to install or uninstall anything, no matter pip or easy_install. This should be the primary issue to solve right now.
    – hoefling
    May 30 at 12:03















BTW, Python 2.6 is no longer supported, so security updates are no longer released for it. And Python 2.7 will reach its official End of Life in 2020, so you need to seriously think about migrating to Python 3.
– PM 2Ring
May 30 at 11:06





BTW, Python 2.6 is no longer supported, so security updates are no longer released for it. And Python 2.7 will reach its official End of Life in 2020, so you need to seriously think about migrating to Python 3.
– PM 2Ring
May 30 at 11:06













Note that sysconfig doesn't exist in Python 2.6. It was introduced in Python 3.2 and backported to 2.7.
– PM 2Ring
May 30 at 11:19




Note that sysconfig doesn't exist in Python 2.6. It was introduced in Python 3.2 and backported to 2.7.
– PM 2Ring
May 30 at 11:19












why is it complaining then that no sysconfig? perhaps it tried to upgrade a module that is not supposed to work on python 2.6 The OS does not offer any other option. how to remove the module causing python to complain about sysconfig.
– danidar
May 30 at 11:33




why is it complaining then that no sysconfig? perhaps it tried to upgrade a module that is not supposed to work on python 2.6 The OS does not offer any other option. how to remove the module causing python to complain about sysconfig.
– danidar
May 30 at 11:33












What is your setuptools version atm? Did you install python-setuptools back after removal? It is vital for you to have it installed, otherwise you can forget about python packages.
– hoefling
May 30 at 11:58




What is your setuptools version atm? Did you install python-setuptools back after removal? It is vital for you to have it installed, otherwise you can forget about python packages.
– hoefling
May 30 at 11:58












Your problem is that setuptools dropped python 2.6 support since version 37, but it looks like you have version 39.2.0 for some reason. This will bork your python dist completely as you won't be able to install or uninstall anything, no matter pip or easy_install. This should be the primary issue to solve right now.
– hoefling
May 30 at 12:03




Your problem is that setuptools dropped python 2.6 support since version 37, but it looks like you have version 39.2.0 for some reason. This will bork your python dist completely as you won't be able to install or uninstall anything, no matter pip or easy_install. This should be the primary issue to solve right now.
– hoefling
May 30 at 12:03










1 Answer
1






active

oldest

votes

















up vote
0
down vote













the solution was:



remove completely python-setuptools and delete the folder from /usr/lib/python2.6/site-packages/.



then remove manually from the site-packages folder the module: pyOpenSSL it was after trying to upgrade it that everything went south.



rm -rf pyOpenSSL-18.0.0-py2.6.egg/


install back from yum python-setuptools now pip list can list the modules and no more errors with easy_install either.






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: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2funix.stackexchange.com%2fquestions%2f446863%2fpython-easy-install-or-pip-errors-about-sysconfig%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
    0
    down vote













    the solution was:



    remove completely python-setuptools and delete the folder from /usr/lib/python2.6/site-packages/.



    then remove manually from the site-packages folder the module: pyOpenSSL it was after trying to upgrade it that everything went south.



    rm -rf pyOpenSSL-18.0.0-py2.6.egg/


    install back from yum python-setuptools now pip list can list the modules and no more errors with easy_install either.






    share|improve this answer
























      up vote
      0
      down vote













      the solution was:



      remove completely python-setuptools and delete the folder from /usr/lib/python2.6/site-packages/.



      then remove manually from the site-packages folder the module: pyOpenSSL it was after trying to upgrade it that everything went south.



      rm -rf pyOpenSSL-18.0.0-py2.6.egg/


      install back from yum python-setuptools now pip list can list the modules and no more errors with easy_install either.






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        the solution was:



        remove completely python-setuptools and delete the folder from /usr/lib/python2.6/site-packages/.



        then remove manually from the site-packages folder the module: pyOpenSSL it was after trying to upgrade it that everything went south.



        rm -rf pyOpenSSL-18.0.0-py2.6.egg/


        install back from yum python-setuptools now pip list can list the modules and no more errors with easy_install either.






        share|improve this answer












        the solution was:



        remove completely python-setuptools and delete the folder from /usr/lib/python2.6/site-packages/.



        then remove manually from the site-packages folder the module: pyOpenSSL it was after trying to upgrade it that everything went south.



        rm -rf pyOpenSSL-18.0.0-py2.6.egg/


        install back from yum python-setuptools now pip list can list the modules and no more errors with easy_install either.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered May 31 at 5:14









        danidar

        213




        213



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f446863%2fpython-easy-install-or-pip-errors-about-sysconfig%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

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

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay