Collecting paramiko Using cached https://files.pythonhosted.org/packages/87/62/cee9551811c846e9735f749dbdf05d4f9f0dbcecd66eae35b5daacf9a117/paramiko-3.2.0.tar.gz Complete output from command python setup.py egg_info: /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'project_urls' warnings.warn(msg) /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires' warnings.warn(msg) error in paramiko setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers. ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-McaWaS/paramiko/ You are using pip version 8.1.2, however version 23.1.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command.
时间: 2024-04-26 13:21:53 浏览: 9
根据你提供的信息,安装Paramiko库时出现了错误。错误信息中显示了以下内容:
```
error in paramiko setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
```
这个错误提示是因为安装的Paramiko版本不兼容当前的Python版本,或者是pip版本过低导致的。建议你更新pip到最新版本,使用以下命令:
```
pip install --upgrade pip
```
然后再重新安装Paramiko库:
```
pip install paramiko
```
如果问题仍然存在,请尝试指定Paramiko的版本号来安装:
```
pip install paramiko==2.7.2
```
或者在Python2.7环境中使用easy_install来安装Paramiko:
```
easy_install paramiko
```
这些方法中,更新pip或使用easy_install可能对你的问题有帮助,如果问题仍然存在,可以尝试升级Python版本或者联系Paramiko库的开发者来获取更多帮助。
相关问题
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple Collecting pywt
这个信息表明你正在使用 `pip` 工具从 PyPI 仓库中安装 PyWavelets 模块,当前正在检查清华大学的镜像站点。如果你看到了类似这样的输出:
```
Collecting pywt
Downloading https://files.pythonhosted.org/packages/1f/87/.../PyWavelets-1.1.1-cp39-cp39-win_amd64.whl (4.3MB)
|████████████████████████████████| 4.3MB 7.1MB/s
Installing collected packages: pywt
Successfully installed pywt-1.1.1
```
那么就说明 PyWavelets 模块已经成功安装了。你可以在 Python 代码中导入 `pywt` 模块,然后开始使用其中提供的函数和类。例如:
```python
import pywt
# 使用 PyWavelets 进行小波变换
coeffs = pywt.wavedec(data, wavelet='db1', level=5)
```
如果你在使用 PyWavelets 模块时遇到了问题,请在问题描述中提供更多的代码和错误信息,以便我更好地帮助你解决问题。
ubuntu@sh-48-205:~/backup$ pip3 install chardet Collecting chardet Using cached https://files.pythonhosted.org/packages/4c/d1/1b96dd69fa42f20b70701b5cd42a75dd5f0c7a24dc0abfef35cc146210dc/chardet-5.0.0-py3-none-any.whl Installing collected packages: chardet Successfully installed chardet-5.0.0 ubuntu@sh-48-205:~/backup$ chardet --version chardet 3.0.4
根据您的输出信息,您可能需要卸载之前安装的 chardet 3.0.4 版本。您可以使用以下命令卸载旧版本:
```python
sudo pip3 uninstall chardet
```
卸载后,您可以重新安装新版本的 chardet:
```python
sudo pip3 install chardet
```
然后再次执行 `chardet --version` 命令,确认版本是否已更新为 5.0.0。