Installing Python3
Windows needs to install official website download
Linux will come with 2 of the Python3 need to install 2 and 3 can coexist
Linux Installation Python3 Tutorial:
1.
Installing Python-dependent third-party packages
#yum Install Openssl-devel libxslt-devel-y
2.
Python official website Download Python3 source package, website: https://www.python.org/downloads/release/python-360/
Select the latest version of Python3 python3.6. 2
3.
Extract
[Email protected] home]# TAR-XVZF Python-3.6.2
[Email protected] home]# CD PYTHON-3.6.2/
Setting up the Python installation directory
[Email protected] python-3.6.2]#/configure--prefix=/usr/python3
[[email protected] python-3.6.2]# make
[[email protected] python-3.6.2]# make install
[Email protected] bin]# ln-s/usr/python3/bin/python3.6/usr/bin/python3
Now input Python3 can be used normally
Input Python python2 can also be used normally
Write the Python code saved as a. py file
To add permissions at the time of execution
Chmod-r 755 new1.py
using Pycharm
Break End Loop
Python Learning notes--