小白在mac中的Python2.7及Python3.6中安装Pygame
来源:互联网 发布:linux进入用户命令 编辑:程序博客网 时间:2024/06/17 18:07
问题描述:在mac中安装了两个版本的Python,终端默认Python2.7, launchpad中可以找到Python3.6.应用程序中存在Python2.7和Python3.6的文件夹
解决:首先安装pip,安装过程中感觉系统自带Python中存有pip,可能也不需要安装。如需安装,可在“https://pip.pypa.io/en/stable/installing/”中另存“get-pip.py”为get-pip.py文件,进入python运行安装。
而后,进入mac“终端”,直接输入“sudo pip install pygame”,进入Python2.7的Pygame安装模式。“sudo pip3 install pygame”则进入Python3.6的Pygame安装模式。
安装完毕,可分别进入相关Python检测安装状态。输入“import pygame”,出现“>>>”则成功安装!
祝您顺利!
0 0
- 小白在mac中的Python2.7及Python3.6中安装Pygame
- 在python3中安装Pygame
- 同时在安装Python2和Python3下安装pygame
- Python3中安装pygame
- Mac 安装 python3 , pip3 , pygame
- 【Python】在Mac系统中安装Pygame
- 【Python】在Mac系统中安装Pygame
- 【Python】利用homebrew在mac中安装pygame
- centos中python2.7及pip的安装(python3的安装方法类似)
- python2.x中函数在python3.x中的改动方法
- python2.x中函数在python3.x中的改动方法
- Mac中升级Python2.7到Python3.5步骤
- 在python3中安装python2的包(比如builtwith)
- Mac安装python2.x与python3.x
- Ubuntu16.04自带Python2.7和Python3,为什么用pip安装的包在Python3中不能用
- Python2.7及Python3.5.2的Scipy安装
- Mac下升级python2.7到python3.6
- Mac下升级python2.7到python3.6详解
- hibernate的核心接口
- 接上,优化滚动的效率
- 简单分析system_call中断处理过程
- java 虚拟机 参数配置
- Linux下SSH安装配置使用详解
- 小白在mac中的Python2.7及Python3.6中安装Pygame
- Android基础知识01
- 专杀工具源码 V1.5
- 名词解释
- 标题栏随RecyclerView滑动动态修改透明度
- 团体程序设计天梯赛-练习集 -- L2-018. 多项式A除以B(多项式除法--模拟)
- ViewPager+RadioGroup+Fragment仿微信实现底部导航功能
- Java Web程序设计——环境搭建
- Centos下安装apahce的configure: error: APR not found. Please read the documentation解决办法