Unable to install black with pip and python 2.7
envgap__psf__black-439
Original GitHub issue ↗Opened 2018-08-08
01 / FAILURE SIGNATURE
As reported upstream
Could not find a version that satisfies the requirement black (from versions: )
Not a benchmark task.
- No curated issue-specific recipe or verified environment fix is available.
02 / ENVIRONMENT RECIPE
- Base commit
Not freshly verified- Manifest
requirements.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
psf/black #439 · read the original issue
Howdy! Sorry you're having trouble. To expedite your experience,
provide some basics for me:
Operating system: macOS High Sierra 10.13.4
Python version: 2.7.10/3.7.0
*Black* version: N/A
Does also happen on master:
If i use pip i get this:
```
pip install black
Collecting black
Could not find a version that satisfies the requirement black (from versions: )
No matching distribution found for black
```
So i tried installing from Github and got this:
```
pip install "git+https://github.com/ambv/black.git"
Collecting git+https://github.com/ambv/black.git
Cloning https://github.com/ambv/black.git to /private/var/folders/d1/xvn4kf7501xbnpp3grb11w6rhdspfc/T/pip-req-build-SvhG55
Installing build dependencies ... done
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/var/folders/d1/xvn4kf7501xbnpp3grb11w6rhdspfc/T/pip-req-build-SvhG55/setup.py", line 13
def get_long_description() -> str:
^
SyntaxError: invalid syntax
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/d1/xvn4kf7501xbnpp3grb11w6rhdspfc/T/pip-req-build-SvhG55/
```
Is it possible because i have two python version pip is trying to install black as a Python2 package and it therefore fails? How can i solve this problem?04 / LABELS
Labels from the report text only; not yet run
misspecificationLabel rules and the text that matched
[
{
"category": "misspecification",
"rule": "signature.unresolvable_declared_requirement",
"source": "failure_signature",
"excerpt": "Could not find a version that satisfies the requirement black (from versions: )"
}
]Issue-specific recipe and runtime smoke command require review against the complete issue and repository.
Legacy already_works is install-only; proposed control still requires runtime verification.