ScalaBoy
ScalaBoy

Reputation: 3392

Cannot install some libraries from requirements.txt in IntellijIDEA

In my Python project developed in IntellijIDEA, I have the file requirements.txt with the following content:

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

When I build the project, I get the error:

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

I was able to build this project on another laptop without any problem.

I am using Python 3.6 and the Python SDK path is the following: /Users/mimi/anaconda3/bin/python.

Upvotes: 2

Views: 717

Answers (1)

dejanmarich
dejanmarich

Reputation: 1285

Looks like package is not available when you installed via pip-install -r requirements.txt

Maybe you can git clone package from github and install - https://github.com/eclipse/paho.mqtt.python#installation

Or using Anaconda:

conda install -c wheeler-microfluidics paho-mqtt (win)

conda install -c lucaszw paho-mqtt (mac)

Upvotes: 1

Related Questions