Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
212 views
in Technique[技术] by (71.8m points)

I keep getting this python error when running any command with pip


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Looks like there's a confusion of Python versions; the filenames suggest Python 2.7 (directory name python27), but the code is Python 3.6 or later (strings prefixed with f", known as f-strings).

You'll need to reinstall matching versions of python and pip; probably the latest (Python 3.x), unless you have reason to use 2.7 specifically.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...