请问在centos7中如何同时安装python2与python3?
我想让他们两个并存
网友回复
在centos7中自带的是Python2的版本,但是并没有pip的方法,我们需要自行安装 报名为python-pip
# 默认python2的版本 [root@operation ~]# python Python 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> # 安装Python2的pip [root@operation ~]# yum install epel-release -y [root@operation ~]# yum -y install python-pip # 安装完成后不是最新的pip版本要进行升级 [root@operation ~]# pip install --upgrade pip # 测试 [root@operation ~]# pip -V(大写V) pip 18.1 from /usr/lib/python2.7/site-packages/pip (python 2.7) # 现在可以使用pip进行对Python2 进行安装Python包了 # 第一种方法: [root@operation ~]# pip install 包名 # 第二种方法: [root@operation ~]# python -m pip install pymongo (安装Python2的包) # 若是安装的Python3 [root@operation ~]# python3 -m pip install pymongo (安装Python3的包) 下面我们再安装Python3 安装...点击查看剩余70%
chrome网页突然报错:错误代码:RESULT_CODE_KILLED_BAD_MESSAGE
openai的codex如何全程无需手动确认自动修改文件?
阿里云oss前端上传文件直传如何限制文件类型?
阿里云oss前端获取policy签名直传oss上传文件回调如何传?
如何将根据三维物体通过提示词变成可交互的4d场景动画?
浏览器中实时摄像头离线视觉ai模型有吗?
如何让ai基于Chromium内核开发自己的windows浏览器?
如何将自己从小生活的农村村庄做成3d可漫游的高斯泼溅?
同一个iframe多次write包含three的html为啥报错不显示Failed to execute 'write' on 'Document': Identifier 'scene' has a
软件工程师的工作内容将由敲代码转变成使用ai来解决现实世界的问题?


