python - pip install --upgrade 给出相同的警告
问题描述
Successfully installed pip-21.0.1
WARNING: You are using pip version 20.2.1; however, version 21.0.1 is available.
完整跟踪
$ /usr/bin/python3 -m pip install --upgrade pip
Defaulting to user installation because normal site-packages is not writeable
Collecting pip
Downloading pip-21.0.1-py3-none-any.whl (1.5 MB)
|████████████████████████████████| 1.5 MB 19.7 MB/s
Installing collected packages: pip
WARNING: The scripts pip, pip3 and pip3.6 are installed in '/home/ubuntu/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed pip-21.0.1
WARNING: You are using pip version 20.2.1; however, version 21.0.1 is available.
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
尽管升级了为什么它会发出警告?
解决方案
您没有执行 site-package upgrade re 的写入权限site-packages is not writeable
。如果您愿意,您可以运行它sudo
,尽管对于基于 Debian 的发行版,不理会软件包管理文件会更合适。
And you are not using the local version you installed re `'/home/ubuntu/.local/bin' which is not on PATH`.
To do this,
导出 PATH=$PATH:/home/ubuntu/.local/bin
推荐阅读
- c# - 以另一种方式调用类
- swift - 线程 1:致命错误:tableViewCell 中的索引超出范围
- java - Cordova 插件 - 使用 AAR
- c# - 通用存储库、工作单元、Unity 的架构问题
- javascript - 尝试单击隐藏然后再次可见的元素时出错
- docker - 如何从 docker 容器在主机上安装/运行服务或命令
- android - 如何使用 PreferenceFragmentCompat 在首选项之间显示分隔符
- android - 在表单数据邮递员中传递数组时如何在 ApiInterface Android 中传递/发布 ArrayList
- ruby-on-rails - 嗨,我对网络开发很陌生。所以请原谅我提出任何愚蠢的问题
- java - IndexOf()方法查找字符串中的数字问题