我在ubuntu下的默认环境下输入pip list
出现问题:
zhai@zhai-Lenovo-Legion-Y7000:~$ pip list
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
解决方法1:
以后使用要用一下命令
python -m pip install torchtext(包名)
或
python -m pip list
就是相比以前前面要加一个 python -m
虽然不是长久之计,但是现在这样先用着就行,以后在找根本的解决办法。