环境:centos7
I installed Python 3.4
on CentOS 7.3
:
- sudo yum install epel-release
- sudo yum install python34.x86_64
There was python 2
installed before under
- type python
- python is hashed (/bin/python)
So version 3 is under python3
:
On Windows, I have version 3.5 and the way I install packages is:
python -m pip install <package_name>
So I tried the same on CentOS but calling python3 instead of python:
How do I install or enable pip in Python 3.4 on CentOS so that I can install packages?
- sudo yum install python34-setuptools
- sudo easy_install-3.4 pip
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。