【问题标题】:Installation of python libraries on OS X在 OS X 上安装 python 库
【发布时间】:2016-02-29 17:01:53
【问题描述】:

当我在 OS X yosemite 上的终端 'sudo pip install scipy'(实际上使用任何 python 包,如 numpy、pandas ..)上运行命令时,我收到以下错误。

Collecting scipy
  Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10c566ed0>: Failed to establish a new connection: [Errno 61] Connection refused',)': /simple/scipy/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10c599050>: Failed to establish a new connection: [Errno 61] Connection refused',)': /simple/scipy/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10c599190>: Failed to establish a new connection: [Errno 61] Connection refused',)': /simple/scipy/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10c5992d0>: Failed to establish a new connection: [Errno 61] Connection refused',)': /simple/scipy/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x10c599410>: Failed to establish a new connection: [Errno 61] Connection refused',)': /simple/scipy/
  Could not find a version that satisfies the requirement scipy (from versions: )
No matching distribution found for scipy

我的 'git clone ..' 工作得很好(我安装了 home brew)。我在代理后面,我已经做了别名。

【问题讨论】:

标签: python git numpy pip osx-yosemite


【解决方案1】:

专门为pip指定代理,

sudo pip --proxy http://user:pass@proxy.server:port install packagename

pip 不使用 http_proxy 变量,在 OS X 终端中设置。

【讨论】:

  • 我也有同样的问题。我应该传递什么代理参数。我不清楚我是否应该在我的 mac 的某个地方配置它。
猜你喜欢
  • 2012-02-27
  • 2016-03-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-04-17
  • 2013-07-12
相关资源
最近更新 更多