我在Debian 8.11上安装了Python 3.7.4,然后升级了pip:
pip3.7 install --upgrade pip --user
Collecting pip
Using cached https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl
Installing collected packages: pip
Successfully installed pip-19.3.1
该操作之后,我将无法再运行pip3.7:
pip3.7 install nltk --user
Traceback (most recent call last):
File "/usr/local/bin/pip3.7", line 10, in <module>
sys.exit(main())
TypeError: 'module' object is not callable
我知道stackoverflow上还有其他关于“模块”对象不可调用的消息, 但这与我自己编写的代码无关,而仅仅是安装pip3.7的结果。
我应该怎么做才能再次运行pip3.7?