Gurgen Hovhannisyan
Gurgen Hovhannisyan

Reputation: 99

pulsar-client couldn't be installed

I cannot install pulsar-client as it is mentioned in the documentation at all:

pip3 install pulsar-client

Collecting pulsar-client ERROR: Could not find a version that satisfies the requirement pulsar-client (from versions: none) ERROR: No matching distribution found for pulsar-client

pip3 install pulsar-client==2.4.0

Collecting pulsar-client==2.4.0 ERROR: Could not find a version that satisfies the requirement pulsar-client==2.4.0 (from versions: none) ERROR: No matching distribution found for pulsar-client==2.4.0

I am on Windows 10, python 3 version.

tried both python 2 and 3 versions.

Upvotes: 4

Views: 4633

Answers (3)

JayB
JayB

Reputation: 77

After looking all over, i found out that for MacOS, pulsar-client only supports macOS (>= 11.0) with python 3.7, 3.8, 3.9 and 3.10 and Linux (including Alpine Linux) with python 3.7, 3.8, 3.9 and 3.10

To install a specific python:

run: brew install [email protected]
run: which python3.10

/opt/homebrew/bin/python3.10

Create a virtual env with that python version

virtualenv -p /opt/homebrew/bin/python3.10 myenv

source myenv/bin/activate

pip install pulsar-client

This worked with no issues on MacOS.

Upvotes: 1

Tim Spann
Tim Spann

Reputation: 503

You may need to build the C++ client if you are on an unusual platform. More platforms have support for the pre-built Python.

We are on 2.10.0 now and the client works in more environments.

If you can't use the Python client, you can try Go, Java, C#, or others.

Pulsar clusters can also accept MQTT, Kafka, Websockets, and other protocols if you need to.

https://pulsar.apache.org/docs/en/client-libraries/

https://github.com/tspannhw/SpeakerProfile

Upvotes: 0

Gurgen Hovhannisyan
Gurgen Hovhannisyan

Reputation: 99

Just to be clear everybody, this is not supported in Windows 10 anymore. Can be used Linux, MacoS or others.

Upvotes: 4

Related Questions