pip3 install supervisor==3.3.0 WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead. Collecting supervisor==3.3.0 Downloading http://mirrors.tencentyun.com/pypi/packages/44/80/d28047d120bfcc8158b4e41127706731ee6a3419c661e0a858fb0e7c4b2d/supervisor-3.3.0.tar.gz (416kB) 100% |████████████████████████████████| 419kB 1.7MB/s Complete output from command python setup.py egg_info: Supervisor requires Python 2.4 or later but does not work on any version of Python 3. You are using version 3.6.8 (default, Apr 2 2020, 13:34:55) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)]. Please install using a supported version. ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-iopil6hl/supervisor/
时间: 2023-09-18 11:08:27 浏览: 170
看起来你的 Python 版本是 3.6.8,而 supervisor 3.3.0 只支持 Python 2.4 或更高版本的 Python 2.x。如果你想在 Python 3.x 中使用 supervisor,可以尝试安装 supervisor 4.0.0 或更高版本,它们支持 Python 3.x。
如果你仍然要安装 supervisor 3.3.0,可以考虑使用 Python 2.x 的环境,或者升级到 supervisor 4.0.0 或更高版本。如果你想继续安装 supervisor 3.3.0,可以尝试使用以下命令来安装 Python 2.x 版本:
```
sudo apt-get install python2.7
```
然后使用以下命令来安装 supervisor:
```
sudo python2.7 -m pip install supervisor==3.3.0
```
但请注意,Python 2.x 已经不再维护了,建议使用 Python 3.x。如果你能够使用 supervisor 4.0.0 或更高版本,建议使用 Python 3.x 环境来安装。
相关问题
[root@localhost HIDS]# pip3 install --user WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead. You must give at least one requirement to install (see "pip help install")
这个命令提示你不应该使用root权限来安装Python包,应该使用--user选项来安装到用户目录下。另外,你需要指定要安装的包名和版本号,例如:
```
pip3 install --user numpy==1.19.3
```
这将安装numpy 1.19.3版本到你的用户目录下。如果你不知道要安装哪些包,可以查看项目的requirements.txt文件,其中列出了项目依赖的所有包及其版本。你可以使用以下命令来安装这些包:
```
pip3 install --user -r requirements.txt
```
shells pip3 install --upgrade ycmd WARNING: Running pip install with root privileges is generally not a good idea. Try `pip3 install --user` instead. Collecting ycmd Could not find a version that satisfies the requirement ycmd (from versions: ) No matching distribution found for ycmd
根据你提供的错误信息,看起来没有找到可用的 ycmd 版本。这可能是因为 ycmd 在 PyPI(Python Package Index)上没有可用的发布版本。
通常情况下,你可以尝试从其他来源安装 ycmd,比如从 GitHub 上的源代码进行安装。以下是一种可能的安装方法:
1. 克隆 ycmd 仓库:
```
git clone https://github.com/ycm-core/ycmd.git
```
2. 进入 ycmd 目录:
```
cd ycmd
```
3. 使用 Python 3 运行安装脚本:
```
python3 ./build.py --all
```
这将使用 Python 3 执行 ycmd 的安装脚本,并构建所需的依赖项。
请注意,安装 ycmd 可能需要满足一些额外的系统依赖项,例如编译工具等。如果遇到其他错误,请参考 ycmd 仓库中的文档或问题部分,以获取更多关于安装和配置的信息。