电脑上的Python版本是Python3.7,想要安装numpy模块,但是无论是用pip3 install numpy还是sudo pip3 install numpy都显示如下
>>Traceback (most recent call last):
>>File "/Library/Frameworks/Python.framework/Versions/3.7/bin/pip3", line 5, in <module>
from pip._internal.cli.main import main
>>File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_internal/cli/main.py", line 9, in <module>
from pip._internal.cli.autocompletion import autocomplete
>>File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_internal/cli/autocompletion.py", line 10, in <module>
from pip._internal.cli.main_parser import create_main_parser
>> File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_internal/cli/main_parser.py", line 8, in <module>
from p