Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

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

python - I have this ERROR: Cannot uninstall 'pyparsing' I try to install pytest in Mac os

I try to install pytest in terminal Mac Os, so I follow the instruccions of this website Exercism * https://exercism.io/tracks/python/tests

The download starts well:

MacBook-Pro-de-AppleSSD:~ root# pip3 install pytest pytest-cache
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.

Collecting pytest
  Downloading pytest-4.6.11-py2.py3-none-any.whl (231 kB)
     |████████████████████████████████| 231 kB 711 kB/s 
Collecting pytest-cache
  Downloading pytest-cache-1.0.tar.gz (16 kB)
Requirement already satisfied: pathlib2>=2.2.0; python_version < "3.6" in /Library/Python/2.7/site-packages (from pytest) (2.3.5)
Requirement already satisfied: py>=1.5.0 in /Library/

I try to install PYTEST in terminal Mac Os, everything goes well but in this part stop the download.

It is in this part where I get an error from the download:

Attempting uninstall: pyparsing

    Found existing installation: pyparsing 2.0.1

ERROR: Cannot uninstall 'pyparsing'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

How can I solve this problem?


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

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...