1 搭建编程环境
-- 安装 Python3
yum -y install python3*
-- 安装过程中遇到报错 说明已经安装了Python34
--> Finished Dependency Resolution
Error: Package: python3-yamlordereddictloader-0.3.0-1.el7.noarch (epel)
Requires: python3-PyYAML
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
You have mail in /var/spool/mail/root
-- 进入Python3 开始命令 直接Python3即可
python3
print("hello python interpreter!")
print("hello world!")
print("hello habby yang!")
2 在不同的操作系统中搭建Python编程环境
3 解决安装问题
4 从终端运行Python程序
Python3 hello_word.py