installation - Devstack 安装失败并显示错误消息“错误:不允许将可编辑要求作为约束”
问题描述
运行脚本 stack.sh 时遇到以下错误:
Using python 3.6 to install setuptools!=24.0.0,!=34.0.0,!=34.0.1,!=34.0.2,!=34.0.3,!=34.1.0,!=34.1.1,!=34.2.0,!=34.3.0,!=34.3.1,!=34.3.2,!=36.2.0,!=48.0.0,!=49.0.0
+ inc/python:pip_install:187 : sudo -H LC_ALL=en_US.UTF-8 http_proxy= https_proxy= no_proxy= PIP_FIND_LINKS= SETUPTOOLS_SYS_PATH_TECHNIQUE=rewrite python3.6 -m pip install -c /opt/stack/requirements/upper-constraints.txt --ignore-installed 'setuptools!=24.0.0,!=34.0.0,!=34.0.1,!=34.0.2,!=34.0.3,!=34.1.0,!=34.1.1,!=34.2.0,!=34.3.0,!=34.3.1,!=34.3.2,!=36.2.0,!=48.0.0,!=49.0.0'
DEPRECATION: Constraints are only allowed to take the form of a package name and a version specifier. Other forms were originally permitted as an accident of the implementation, but were undocumented. The new implementation of the resolver no longer supports these forms. A possible replacement is replacing the constraint with a requirement.. You can find discussion regarding this at https://github.com/pypa/pip/issues/8210.
ERROR: Editable requirements are not allowed as constraints
++./stack.sh:main:752 err_trap
++./stack.sh:err_trap:530 local r=1
stack.sh failed: full log in /opt/stack/logs/stack.sh.log.2021-05-10-115040
Error on exit
再高一点,我有这个警告:
Attempting uninstall: pip
Found existing installation: pip 21.1.1
Uninstalling pip-21.1.1:
Successfully uninstalled pip-21.1.1
Successfully installed pip-21.1.1
WARNING: Running pip as root will break packages and permissions. You
should install packages reliably by using venv:
https://pip.pypa.io/warnings/venv
知道为什么吗?谢谢
解决方案
推荐阅读
- powerbi - 将 Power BI 数据源中的单行数据拆分为多行
- java - Java - 泛型 - 在泛型指定对象中转换泛型对象不起作用
- reporting-services - 使用 ODBC 将数据源添加到报表生成器
- extjs - ExtJS 和 FontAwesome:屏幕阅读器兼容性
- c - 格式化字符串的大小
- ruby-on-rails - 在 Rspec 请求规范中设置会话变量
- mongodb - 为什么我的数据库中会出现空数组?
- php - Laravel:Swift_TransportException:无法与主机建立连接
- odoo - 创建发票时如何修改销售订单行?
- python-3.x - 我尝试更新的 2D 列表有什么问题?