Error When Installing Python PIP or PIP3 TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'
So, a couple days ago I was in a development of creating Odoo server. Since Odoo needs pyhton to run, I tried to install a python packages and dependencies but then an error message appears :
TypeError: unsupported operandtype(s) for -=: 'Retry' and 'int'
After few hours of struggling, i try to make sure if this server are connected to internet but when i pinging to google, turns out an error message appear :
Temporary failure in name resolution
After that i finally know what's going on. I need to add "nameserver 18.104.22.168" in "/etc/resolv.conf". This resolv.conf file have a responsibility to handle and resolv DNS address. In this case, resolv.conf cannot communicate through internet and download python package through it. That's why it cannot be done and message error appears.
The step to fix it, is login to your debian server as root, and then type in "nano /etc/resolv.conf". After that, add "nameserver 22.214.171.124", press ctrl + x + y and enter. Then, try to use PIP or PIP3.
For more information, you can refer to this source : stackoverflow & tecmint
|python pip - source : technipages.com|