python easy_install or pip errors about sysconfig
Clash 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
python pip
add a comment |Â
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
python pip
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 thatsysconfig
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 yoursetuptools
version atm? Did you installpython-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 thatsetuptools
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 matterpip
oreasy_install
. This should be the primary issue to solve right now.
â hoefling
May 30 at 12:03
add a comment |Â
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
python pip
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
python pip
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 thatsysconfig
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 yoursetuptools
version atm? Did you installpython-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 thatsetuptools
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 matterpip
oreasy_install
. This should be the primary issue to solve right now.
â hoefling
May 30 at 12:03
add a comment |Â
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 thatsysconfig
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 yoursetuptools
version atm? Did you installpython-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 thatsetuptools
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 matterpip
oreasy_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
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
answered May 31 at 5:14
danidar
213
213
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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 installpython-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 matterpip
oreasy_install
. This should be the primary issue to solve right now.â hoefling
May 30 at 12:03