Ubuntu Python
来源:互联网 发布:c语言程序运行闪退 编辑:程序博客网 时间:2024/05/06 12:18
1.下载Python源码
Python Source Releases
官网 https://www.python.org/downloads/source/
Python 3.6.3 - 2017-10-03
Download XZ compressed source tarball
解压安装
xz -d Python-3.6.3.tar.xz
tar -xvf Python-3.6.3.tar
cd Python-3.6.3
./configure
make
会报错,找不到zlib包。
打开文件Python-3.6.3/Modules/Setup,找到如下语句,并注释掉zlib所在行。
# Andrew Kuchling's zlib module.# This require zlib 1.1.3 (or later).# See http://www.gzip.org/zlib/zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
重新make编译。报错。
error: zlib.h: No such file or directory
安装zlib包解决。
sudo apt-get install zlib1g-dev
最后重新安装
sudo make install
2.vim 设置默认打开行号
安装sudo apt-get install vim
安装成功后,输入vim,启动成功后,
在vim中使用命令set number,可以使其现实行号。
但是,这样只对本次有效,如果使得每次都有效,则需要更改其配置文件。
我们打开编辑vim的配置文件:
sudo vim /etc/vim/vimrc
在其中加入一行:set number。
保存后退出。
阅读全文
0 0
- Ubuntu Python
- ubuntu python mysql
- ubuntu ,mkl,python, theano
- ubuntu 安装python 3.2
- ubuntu shell python
- ubuntu python easy_install 安装
- Ubuntu下安装Python
- ubuntu安装python
- mysql python Ubuntu
- ubuntu nginx python uwsgi
- ubuntu中python升级
- Python学习笔记(Ubuntu)
- ubuntu python环境
- ubuntu安装mysql-python
- ubuntu下python升级
- ubuntu安装eclipse+python
- Ubuntu中安装Python
- Ubuntu Python Setup
- 时间段预约库存功能的实现
- 正则捕获
- [BZOJ3144][HNOI2013]切糕-网络流
- C++字符串中的空格移位
- PPT 注释
- Ubuntu Python
- 利用saltstack部署高可用集群及负载均衡(keepalived+haproxy+nginx)
- 生成窗口最大值数组
- 彻底搞懂 Python 编码
- 【C/C++】对char* 和 char[]区别的一些理解
- 欢迎使用CSDN-markdown编辑器
- kotlin学习day11:扩展函数
- codeforces 846D (二分+二维前缀和)Monitor
- 系统运行级别