python - 有没有办法在没有 Python2 的情况下在 Ubuntu 焦点上安装 Mercurial?
问题描述
我非常注意不要在我最新的 Ubuntu 焦点 amd64 系统中包含 python 2.x。我在不注意的情况下安装了 mercurial (sudo apt install mercurial) 的错误。它安装了以下软件包。
The following package was automatically installed and is no longer required:
python3-magic
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib mercurial-common python2 python2-minimal python2.7 python2.7-minimal
Suggested packages:
kdiff3 | kdiff3-qt | kompare | meld | tkcvs | mgdiff qct python-mysqldb python-openssl python-pygments wish python2-doc python-tk python2.7-doc binfmt-support
The following NEW packages will be installed:
libpython2-stdlib libpython2.7-minimal libpython2.7-stdlib mercurial mercurial-common python2 python2-minimal python2.7 python2.7-minimal
有没有办法避免python2?
解决方案
是的,从 Mercurial v5.2 开始:
python3 -m pip install mercurial
推荐阅读
- python - 浮点数和整数相加并取绝对值
- javascript - 从 PHP/Javascript 调用 R 脚本
- ios - 在 UILabel 中拟合文本 - Swift
- visual-c++ - 从 mfc 扩展 dll 导出的无模式对话框不显示
- python - KeyError 即使密钥存在
- python - 没有功能卡住的阶乘问题
- python - 获取对象中带有硒的页面的 URl 的方法 - 出错
- spring-boot - 检索新列表具有先前保存的不完整关联对象
- azure-blob-storage - 如何使用 java sdk 执行 azure 存储服务 blob 取消删除?
- python - 在 Python 中打印大字符串需要太多时间