【发布时间】:2019-06-13 20:02:32
【问题描述】:
我按照链接@https://linuxize.com/post/how-to-install-pip-on-centos-7/#2-install-pip安装了pip,但是系统自带的python 2.6安装了,python 2.7怎么安装呢?
sudo yum install epel-release
Loaded plugins: security
Setting up Install Process
Package epel-release-6-8.noarch already installed and latest version
Nothing to do
安装点子
sudo yum install python-pip
Loaded plugins: security
Setting up Install Process
Package python-pip-7.1.0-1.el6.noarch already installed and latest version
Nothing to do
pip 版本
pip --version
pip 7.1.0 from /usr/lib/python2.6/site-packages (python 2.6)
机器配置:
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: OracleServer
Description: Oracle Linux Server release 6.6
Release: 6.6
Codename: n/a
/usr/本地
【问题讨论】:
-
以上都没有解决我的问题...就像我说的使用 OracleServer 6.6
-
接受的答案无处不在,Linux、w32、MacOS……
-
@phd 这给了我一个错误
$ python get-pip.py pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting pip .. Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)) - skipping Could not find a version that satisfies the requirement pip (from versions: ) No matching distribution found for pip