Hi, I had the same problem as you. I solved the problem by making the line the 127.0.0.1 localhostfirst line in / etc / hosts. The reason the python console does not start is because the python console is trying to connect to localhost: pycharm-port, but localhost was allowed for the IPv6 version ::1and the connection was rejected.
source
share