The recently installed on the server python3.6, encountered many problems, mainly with reference to the following two blog complete.
Method a: installation package
Method two: apt-get install
I have tried it, think second method is fast, the problem is small.
Which recorded some of the problems encountered, and the method can be found in:
Installation bug workaround pip encounter
Installation bug workaround sqlite3 encounter
Multiple versions of python priority setting methods exist simultaneously
Installation pip encountered No Module named 'pip_internal' solution