python
python学习记录
wdtmn
这个作者很懒,什么都没留下…
展开
-
centos7 安装Python3
centos7中默认安装了python2,且yum是基于python2的,因此要同时安装python2和python3两个版本。步骤如下: 1. 安装依赖包: yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc libffi-dev...原创 2019-09-08 19:22:39 · 107 阅读 · 0 评论 -
linux修改pip指向国内源
(1)临时使用: 可以在使用pip的时候,加上参数-i和镜像地址(如https://pypi.tuna.tsinghua.edu.cn/simple), 例如: pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyspark 这样就会从清华镜像安装pyspark库。 (2)永久修改: Linux下,修改 ~/.pip/pip....原创 2019-09-09 22:45:41 · 1515 阅读 · 0 评论