gpt4 book ai didi

python - 如何在 ubuntu 16.04 LTS 中安装 pip3 和 paramiko?

转载 作者:行者123 更新时间:2023-12-04 18:31:41 26 4
gpt4 key购买 nike

我正在尝试安装 python paramiko使用以下命令:

pip3 install paramiko

然后我得到一个错误:
The program 'pip3' is currently not installed. You can install it by typing:
sudo apt install python3-pip

然后尝试安装 pip使用上面的命令,结果是:

Reading package lists... Done Building dependency tree
Reading state information... Done python3-pip is already the newest version (8.1.1-2ubuntu0.4). The following packages were automatically installed and are no longer required: python3-babel python3-dateutil python3-decorator python3-funcsigs python3-gevent python3-greenlet python3-html2text python3-mock python3-ofxparse python3-passlib python3-pbr python3-psutil python3-psycopg2 python3-pydot python3-pyinotify python3-pypdf2 python3-serial python3-stdnum python3-tz python3-usb python3-vatnumber python3-werkzeug python3-yaml Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 82 not upgraded.



然后我尝试安装 paramiko再次出现同样的错误, pip没有安装。

当我输入 pip3 --version输出是:
The program 'pip3' is currently not installed. You can install it by typing:
sudo apt install python3-pip


pip --version

输出是:
 pip 10.0.1 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)

我该如何解决这个问题?

最佳答案

对于 python 3 上的 pip,您必须输入以下命令:
sudo apt install python3-pip
希望这可以帮助

关于python - 如何在 ubuntu 16.04 LTS 中安装 pip3 和 paramiko?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50563984/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com