install python3.5 Possible dependencies

yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel

yum install gcc gcc-c++ -y

To python Find the download path on the official website , use wget download

wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz

decompression tgz package

tar -zxvf Python-3.5.1.tgz

hold python Move to /usr/local below

mv Python-3.5.1 /usr/local

Get into python Catalog

cd /usr/local/Python-3.5.1/

To configure

./configure

compile

make

compile , install

make install

Delete the old version of python rely on

ll /usr/bin | grep python

rm -rf /usr/bin/python

Create new soft links to the latest python

ln -s /usr/local/bin/python3.5 /usr/bin/python

python –V

solve python After upgrading yum Report errors

When we yum When ordered , Will prompt

“File "/usr/bin/yum", line 30

except KeyboardInterrupt, e:

^

SyntaxError: invalid syntax”

It could be an upgrade python Caused by the ,yum Yes, it is python As an interpreter

Run again yum command , No more mistakes

Centos 6.9-- To configure python3.5 More articles about

  1. CentOS Install configuration on Python3.7

    One . Install dependency packages , I don't know the specific function of this , It feels like a tool that will be used during installation . yum install zlib-devel bzip2-devel openssl-devel ncurses-de ...

  2. CentOS Installation under system python3+Django

    Reprint :CentOS Installation under system python3+Django 1. First use yum Installation vim, because CentOS 7 Maybe they didn't bring their own complete vim, Frequent input garbled :yum -y install vim 2. Install on ...

  3. CentOS 7 Lower installation Python3.6

    CentOS 7 Lower installation Python3.6.4   CentOS 7 Lower installation Python3.5 • install python3.6 Possible dependencies yum install openssl-devel bzip2-de ...

  4. CentOS 7 Lower installation Python3.6.4

    CentOS 7 Lower installation Python3.5 • install python3.6 Possible dependencies yum install openssl-devel bzip2-devel expat-devel gdbm-deve ...

  5. centos python2 Upgrade to python3 Upgrade the old version django

    Alibaba cloud centos python3 And django Configuration of install python3 after pip Will install the downloaded package into python2.7 Here's how to solve the problem python3.5 install 1, Install dependency packages #yum install ...

  6. CentOS 7 Lower installation Python3.5

    CentOS 7 Lower installation Python3.5 • install python3.5 Possible dependencies yum install openssl-devel bzip2-devel expat-devel gdbm-deve ...

  7. ESRally Pressure measurement ElasticSearch performance CentOS 7.5 install Python3.7

    1,CentOS 7.5 install Python3.7 1. Install developer tools yum -y groupinstall "Development Tools"2. install Python Compiling dependency packages ...

  8. CentOS Next Apache Configure multi domain name or multi port mapping

    CentOS Next Apache The default site root is /var/www/html, If I default to one CI The project in html Folder , At the same time, the server's external network IP by ExampleIp, Because it uses MVC frame ,Apache To be opened ...

  9. CentOS 6.3 To configure PPTP VPN Methods

    1. verification ppp use cat Command to check if it is on ppp, Most servers are turned on , Except for the special VPS Outside the host . [root@localhost1 /]# cat /dev/ppp cat: /dev/ppp: No ...

  10. be based on VMware by CentOS 6.5 Configure two network cards

    by CentOS 6.5 Configure two network cards , One is eth0, One is eth1, Let's say master For example 1. choice “master”-->“ Edit virtual machine settings ”, As shown below 2. single click “ add to ”, as follows 3. choice “ Network adaptation ...

Random recommendation

  1. Groovy Handle XML

    1. Parsing XML 1.1. XmlParser and XmlSlurper The most commonly used approach for parsing XML with Gr ...

  2. It must be SQL sentence ( 3、 ... and ) Insert

    1. Some small specifications for using insert statements   1) Before the Chinese string best Add one more N   2) Use brackets for column names Expand    like this   [ Name ]   2. Conventional writing Insert into tableName ( [col ...

  3. Audio playback (iOS Development )

    Audio processing One . sound recording Recording application scenarios Voice chat In instant messaging software , All of them have voice sending function Voice memo Record an audio , To record something The recording function is realized Import AVFoundation frame effect : Some multimedia processing , It's basically ...

  4. Commonly used html Element value and assignment method summary

    1. get type The type is TEXT perhaps AREATEXT Value var textval = $("#text_id").attr("value"); var textv ...

  5. Python Use openpyxl Reading and writing excel file

    Python Use openpyxl Reading and writing excel file This is a third-party library , Can handle xlsx Format Excel file .pip install openpyxl install . If you use Aanconda, It's time to bring your own . Read E ...

  6. How to submit and release wechat apps ? Post questions : Applets only support https visit

    http://www.jisuapp.cn/news/305.html Post questions :1. Applets only support https visit 2. To configure the service domain name

  7. C# In the operation data table XML Formatted data

    I haven't seen data table storage before XML Formatted data , When I first heard about it , I thought it was in the data table XML Field type of , Learn more about , It's actually a string type , It's just that the format of the string is XML Format . It's really uninformed ! Khan, ... ( Additable ...

  8. HDU 3376

    http://acm.hdu.edu.cn/showproblem.php?pid=3376 The question : A matrix , Every point has value , The upper left corner of the starting point and the lower right corner of the ending point , You can only go to the next or right point of the current point at a time , From the beginning to the end , Again from ...

  9. only 100 Yes JavaScript DOM Operation class library

    If you've ever built Web Reference program , You've probably dealt with a lot of DOM operation . Access and operation DOM The element is almost every Web Common requirements for applications . We often collect information from different controls , We need to set value value , modify div or span Labeled ...

  10. So why do you want to see when you learn to divide trees vector ah sjb

    Clearly should brush the topic desperately, but leisurely fill vector And a pointer ------------------------------------------------------------------- . http:// ...