Remove old Python && Fresh install Python

AttributeError: 'module' object has no attribute 'openssl_md_meth_names'

I keep getting this error when trying to install Flask or any library via pip

I looked at other attribute posts and they helped, but this openssl module understands little. I tried installing Python 2.7.9

What steps should be taken to remove python and reformat the new installation? I used to execute sudo apt-get remove python, and it was a big mistake. Since then I have recovered.

+4
source share
2 answers

I would try:

sudo apt-get install --reinstall python2.7

I would also use python2.7 instead of python on the command line to make sure I am using the correct executable.

, , python anaconda. : http://docs.continuum.io/anaconda/ python , python, , ( ). , numpy .., , pip .

+5

apt-get Python, Python, Linux.

Debian, 2.7.9 "" ( "sid" ). ""; "". , .

Python . Python 2.7.9 /usr/local/bin, Python, .

Python, VirtualEnv. http://simononsoftware.com/virtualenv-tutorial-part-2/

+1

Source: https://habr.com/ru/post/1569462/


All Articles