相关疑难解决方法(0)

将Pip安装到较旧的Python版本中

我正在尝试使用以下命令安装mysql-python:

pip install mysql-python
Run Code Online (Sandbox Code Playgroud)

该软件包正在下面安装,虽然我已经在系统上安装了Python 2.6.

/Library/Python/2.5/site-packages
Run Code Online (Sandbox Code Playgroud)

如何安装pip:

/Library/Python/2.6/site-packages
Run Code Online (Sandbox Code Playgroud)

我试过用:

pip install --install-option="--prefix=/Library/Python/2.6/site-packages/" mysql-python
Run Code Online (Sandbox Code Playgroud)

但那不起作用,它输出:

    Requirement already satisfied (use --upgrade to upgrade): mysql-python in 
    /Library/Python/2.5/site-packages
    Cleaning up...
Run Code Online (Sandbox Code Playgroud)

python pip

14
推荐指数
1
解决办法
2万
查看次数

错误:找不到匹配的匹配分布

我想在我的python 2.6.6中安装pip ,我有Oracle Linux 6

我按照此链接Link给出的答案

我下载了get-pip.py文件并运行以下命令

sudo python2.6 get-pip.py
Run Code Online (Sandbox Code Playgroud)

但是我收到以下错误

[root@bigdatadev3 Downloads]# sudo python2.6 get-pip.py
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Collecting pip
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x3cad210>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/pip/
  Retrying (Retry(total=3, connect=None, …
Run Code Online (Sandbox Code Playgroud)

python python-2.6

8
推荐指数
1
解决办法
3万
查看次数

curl for get-pip.py does not work: Syntax Error

When I try to run:

[root@pex appliance_ui]# curl https://bootstrap.pypa.io./get-pip.py | python
Run Code Online (Sandbox Code Playgroud)

It returns:

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1603k  100 1603k    0     0  7006k      0 --:--:-- --:--:-- --:--:-- 13.2M
Traceback (most recent call last):
  File "<stdin>", line 20649, in <module>
  File "<stdin>", line 197, in main
  File "<stdin>", line 82, in bootstrap
  File "/tmp/tmpH39pcu/pip.zip/pip/_internal/__init__.py", line 42, in <module>
  File "/tmp/tmpH39pcu/pip.zip/pip/_internal/cmdoptions.py", line 16, in <module>
  File "/tmp/tmpH39pcu/pip.zip/pip/_internal/index.py", …
Run Code Online (Sandbox Code Playgroud)

curl pip python-2.6 centos6 python-3.5

4
推荐指数
1
解决办法
7148
查看次数

标签 统计

pip ×2

python ×2

python-2.6 ×2

centos6 ×1

curl ×1

python-3.5 ×1