Collecting paramiko==2.7.2 Using cached https://files.pythonhosted.org/packages/95/19/124e9287b43e6ff3ebb9cdea3e5e8e88475a873c05ccdf8b7e20d2c4201e/paramiko-2.7.2-py2.py3-none-any.whl Collecting bcrypt>=3.1.3 (from paramiko==2.7.2) Using cached https://files.pythonhosted.org/packages/8c/ae/3af7d006aacf513975fd1948a6b4d6f8b4a307f8a244e1a3d3774b297aad/bcrypt-4.0.1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-ocx4h0/bcrypt/setup.py", line 73 print(f" Python: {'.'.join(str(v) for v in sys.version_info[:3])}") ^ SyntaxError: invalid syntax ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ocx4h0/bcrypt/ 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 07:21:58 浏览: 200
解决pip install psycopg2出错问题
5星 · 资源好评率100%
根据你提供的信息,安装Paramiko时出现了错误。错误信息中显示了以下内容:
```
SyntaxError: invalid syntax
```
这个错误提示是因为安装的bcrypt库版本不兼容当前的Python版本,或者是pip版本过低导致的。建议你更新pip到最新版本,使用以下命令:
```
pip install --upgrade pip
```
然后再重新安装Paramiko库:
```
pip install paramiko==2.7.2
```
如果问题仍然存在,请尝试先安装bcrypt库,再安装Paramiko库:
```
pip install bcrypt
pip install paramiko==2.7.2
```
这些方法中,更新pip或安装bcrypt库可能对你的问题有帮助,如果问题仍然存在,可以尝试升级Python版本或者联系Paramiko库的开发者来获取更多帮助。
阅读全文