【问题标题】:Install python package from GitHub into Anaconda on Linux Ubuntu在 Linux Ubuntu 上将 python 包从 GitHub 安装到 Anaconda
【发布时间】:2017-05-07 00:21:24
【问题描述】:

我需要将this package located on GitHub 安装到 Anaconda 环境中。我怎样才能做到这一点?

【问题讨论】:

  • 抱歉,stackoverflow 吃掉了协议:pip install https://github.com/lucjon/Py-StackExchange/tarball/master
  • @cel 怎么样,它与 pip install 一起用于 anaconda 解释器? pip install 是否会为我系统中的所有解释器全局安装该软件包?
  • 不,每个解释器都有自己的 pip,也是 anaconda 附带的。你有多少个版本的 pip,你有多少个解释器。当你 pip install 时,你只为一个解释器安装包——这个 pip 版本所属的那个。
  • 我的系统怎么知道我为 Anaconda 调用了 pip?我也有默认的 python 2.7 和 3.5 解释器。是因为在我的$PATH 变量中只有/home/user_name/anaconda3/bin 吗?
  • 它选择路径中优先级最高的 pip,您可以使用 which -a pip 查看路径中的所有 pip 二进制文件。第一行中的那个是被选中的那个。

标签: python-3.x ubuntu pycharm anaconda


【解决方案1】:

您可以使用 pip 从 github 安装最新版本

pip install https://github.com/<user-name>/<repo-name>/tarball/<branch-name>

在你的情况下,这将是:

pip install https://github.com/lucjon/Py-StackExchange/tarball/master

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-23
    • 2015-05-05
    • 2020-09-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多