无法从IntellijIDEA中的requirements.txt安装某些库

时间:2018-07-19 13:05:12

标签: python python-3.x intellij-idea anaconda python-3.6

在以IntellijIDEA开发的Python项目中,文件requirements.txt具有以下内容:

paho-mqtt==1.3.1
scipy=0.19.0
utm==0.4.2
pandas==0.22.0
shapely=1.3.3
pyproj=1.9.5.1

在构建项目时,出现错误:

Solving environment: ...working... failed


PackagesNotFoundError: The following packages are not available from current channels:

  - paho-mqtt==1.3.1

Current channels:

  - https://repo.continuum.io/pkgs/main/osx-64
  - https://repo.continuum.io/pkgs/main/noarch
  - https://repo.continuum.io/pkgs/free/osx-64
  - https://repo.continuum.io/pkgs/free/noarch
  - https://repo.continuum.io/pkgs/r/osx-64
  - https://repo.continuum.io/pkgs/r/noarch
  - https://repo.continuum.io/pkgs/pro/osx-64
  - https://repo.continuum.io/pkgs/pro/noarch

我能够毫无问题地在另一台笔记本电脑上构建该项目。

我正在使用Python 3.6,Python SDK路径如下:/Users/mimi/anaconda3/bin/python

1 个答案:

答案 0 :(得分:1)

通过pip-install -r requirements.txt安装时,看起来像软件包不可用

也许您可以从github上克隆克隆软件包并安装-https://github.com/eclipse/paho.mqtt.python#installation

或使用Anaconda:

conda install -c wheeler-microfluidics paho-mqtt(获胜)

conda install -c lucaszw paho-mqtt(mac)