当前位置: 代码迷 >> 综合 >> linux 默认环境下 WARNING: pip is being invoked by an old script wrapper. This will fail in a future versi
  详细解决方案

linux 默认环境下 WARNING: pip is being invoked by an old script wrapper. This will fail in a future versi

热度:93   发布时间:2024-02-06 20:16:16.0

我在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

虽然不是长久之计,但是现在这样先用着就行,以后在找根本的解决办法。

  相关解决方案