随笔分类 -  python

python
cenots7 下安装PyMySQL
摘要:#wget https://files.pythonhosted.org/packages/44/39/6bcb83cae0095a31b6be4511707fdf2009d3e29903a55a0494d3a9a2fac0/PyMySQL-0.8.1.tar.gz # tar -zxvf PyMy 阅读全文

posted @ 2021-02-04 13:52 范兵 阅读(83) 评论(0) 推荐(0) 编辑

CentOS6.x机器安装Python2.7.x
摘要:说明:不建议在Centos上卸载低版本然后进行高版本安装,因为yum用的就是低版本的python,卸载会有问题。 1、查看机器默认的Python版本 # python -V 2、安装gcc # yum install gcc -y 3、下载最新的Python2.7.x安装包,解压并进入指定目录 # 阅读全文

posted @ 2019-01-22 13:05 范兵 阅读(337) 评论(0) 推荐(0) 编辑

mac 安装mysqldb组件包及mac中安装mysql-python遇到的问题
摘要:错误1:mysql_config not found 问题描述:在执行sudo pip install mysql-python安装时报错误:EnvironmentError: mysql_config not found 解决办法:在执行pip安装之前,先执行"export PATH=$PATH: 阅读全文

posted @ 2016-08-11 09:51 范兵 阅读(237) 评论(0) 推荐(0) 编辑

mac os 安装PIP 及异常“”Can't install python module: PyCharm Error: “byte-compiling is disabled, skipping”“”的解决方案
摘要:For all who have the same problem, it took me a while to find the solution in a new installation of PyCharm 5. The problem is you have to change the d 阅读全文

posted @ 2016-07-26 15:40 范兵 阅读(717) 评论(0) 推荐(0) 编辑

mac os 安装 python 环境
摘要:1.我们先获取pip安装脚本: 如果没有安装wget可以去这里将所有内容复制下来,新建get-pip.py文件,将内容拷进去就OK了. 2.安装pip 用python执行刚才获取的脚本,这里sudo可以选择使用,若遇到类似这个报错则必须加sudo: 安装成功后可以在终端中键入pip来检测,如果不行重 阅读全文

posted @ 2016-07-26 15:28 范兵 阅读(862) 评论(0) 推荐(0) 编辑

导航

点击右上角即可分享
微信分享提示