【问题标题】:Installing a vitual enviroment on Ubuntu Server 18.04.1 - pip package unable to locate在 Ubuntu Server 18.04.1 上安装虚拟环境 - pip 包无法定位
【发布时间】:2018-12-07 21:02:08
【问题描述】:

我正在尝试在 Ubuntu Server 18.04.1 上安装 python/虚拟环境

python --version 

我得到:未找到

python3 --version
I get: `python 3.6.7`
pip3 freeze

我得到:Pip3 not found but can be installed "apt install python3-pip"

apt install python3-pip

我明白了:找不到包'python3-pip'

这是矛盾的:首先我收到一条消息如何安装pip,然后报告找不到pip

【问题讨论】:

    标签: python python-3.x ubuntu ubuntu-18.04


    【解决方案1】:

    你应该去这个安装pip

    sudo apt-get install python3-pip

    【讨论】:

    • 同样的结果;我没想到会工作,因为在新操作系统上不需要使用 apt-get,但我试过了;我已经在使用sudo了,只是没有添加
    猜你喜欢
    • 2021-10-21
    • 1970-01-01
    • 1970-01-01
    • 2019-09-02
    • 1970-01-01
    • 2013-10-26
    • 2021-10-21
    • 1970-01-01
    • 2017-06-15
    相关资源
    最近更新 更多