Black: Cannot pip install black: No matching distribution found for black

Created on 24 Aug 2018  路  5Comments  路  Source: psf/black

Howdy! Sorry you're having trouble. To expedite your experience,
provide some basics for me:

I'm trying to install black from pip and I'm getting:

(virtualenvname) username@machine:~/webapp$ pip install black
Collecting black
  Could not find a version that satisfies the requirement black (from versions: )
No matching distribution found for black

Operating system: Linux, Devuan ascii
Python version: 2.7.13
Black version: newest???

Most helpful comment

Black only runs on Python 3.6 and newer, although it can format code written for older Python versions. Try python3.6 -m pip install black (you may have to install python3.6 or 3.7 first).

All 5 comments

Black only runs on Python 3.6 and newer, although it can format code written for older Python versions. Try python3.6 -m pip install black (you may have to install python3.6 or 3.7 first).

Sorry, I have also Python 3.5.3 (system provided) and also Python 3.6.6 (compiled on my own). Now I prioritized Python 3.6.6 over Python 3.5 with update-alternatives. I'll try your command

python3.6 -m pip install black worked.

Good to hear!

Haha, just ran into this on Windows as well!

Was this page helpful?
0 / 5 - 0 ratings