![](https://img-blog.csdnimg.cn/20190928000535673.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
Python
陈誉友
这个作者很懒,什么都没留下…
展开
-
CentOS6 安装 Python3.7, pip3, setuptools
安装文件前先确保是在root用户环境下进行操作。 1. 安装信赖包 # yum -y install openssl zlib zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-deve...原创 2019-06-21 22:50:19 · 1457 阅读 · 0 评论 -
Centos6 python3 使用 pip3 安装 pygame 出现 pip is configured with locations that require TLS/SSL 问题的解决方案
点开以下链接,按照方法安装Python3.7 CentOS6 安装 Python3.7, pip3 安装完成后,运行指令: #pip3 install pygame 1. 出现错误的信息 pip is configured with locations that require TLS/SSL, however the ssl module in Python is not ava...原创 2019-06-28 21:33:46 · 1360 阅读 · 0 评论 -
Centos6 python3 导入 pygame 出现 ModuleNotFoundError: No module named 'pygame' 异常的解决方法
安装好 pygame 模块包后,我们需要在 python3 中导入 pygame 模块,以便验证该模块是否安装成功。( pygame 的安装方法可参考连接:用 pip3 安装 pygame ) # 运行 python3 python3 # 导入 pygame ,出现以下错误提示 >>> import pygame Traceback (most recent call...原创 2019-06-30 00:57:30 · 3541 阅读 · 3 评论 -
Centos6 python3 导入第三方函数库,自定义函数库的几种配置方法(sys.path, PYTHONPATH, .pth, 环境变量)
假设自定义模块 ship.py 在 /tmp/my_modules/ 这个目录中,我们需要随时在 python3 中导入这个模块,怎样才可以做到呢?下面我们介绍几种配置路径的方法: 1. 修改 python 目录搜索路径 sys.path # 运行 python3 python3 # 导入 sys 模块,并查看工作搜索路径 >>> import sys >>&g...原创 2019-07-07 14:46:11 · 1116 阅读 · 0 评论