Python安装
程序员文章站
2022-04-15 13:31:28
...
Python安装
Python是跨平台的,在Windows,linux,Mac,都可以用。
Windows下安装:下载完后跟着这篇文章做就行。
https://jingyan.baidu.com/article/8cdccae97f7d26315413cd88.html
在linux下安装:
linux下其实是自带Python
~~~~ [[email protected] ~]# rpm -q python
python-2.7.5-48.el7.x86_64
1
2
装一个ipython的软件包,能让linux的Python更好用。
安装ipython软件包要通过pip来安装,而pip又是在epel-release源里。就要先安装epel-release源,在安装Python-pip包,再安装ipyhton.
安装的epel-release源
[[email protected] ~]# yum list |grep epel-release
epel-release.noarch 7-11 @epel
1
2
安装Python-pip
~~~~ [[email protected] ~]# yum install python-pip
1
安装ipython5.3.0
~~~~ [[email protected] ~]# pip install ipython==5.3.0
Running setup.py install for scandir ... done
Successfully installed ipython-5.3.0 pathlib2-2.3.0 pexpect-4.3.1 pickleshare-0.7.4 prompt-toolkit-1.0.15 ptyprocess-0.5.2 scandir-1.6 wcwidth-0.1.7
1
2
3
4
5
安装成功。
---------------------
上一篇: linux如何关闭防火墙
下一篇: PHPCMS2008的导航位置修改