python - 在 Conda 虚拟环境中使用来自 Github 的包

标签 python git jupyter conda

设置

  • Conda 虚拟环境
  • 在 Jupyter notebook 中编码
  • Python 3.6 版

我已经通过 Google 搜索,通过 Conda 帮助、本网站上的 github 帮助进行搜索,并找到了密切相关的问题,但这些问题无法回答我的问题:

虽然第一个很接近。

基本上我的问题归结为:

为了使我的代码正常工作,我需要导入此存储库:https://github.com/nicocanali/airtable-python

如何在我的 Jupyter Notebook 中使用它?

我需要将它添加到我的虚拟环境中。但是怎么办?

最佳答案

我最终做了以下事情:

  1. 在虚拟环境中安装git:(conda install git)
  2. 克隆项目。 (git 克隆 [URL])
  3. 安装包(cd 到包含 setup.py 的包目录。
  4. 然后运行“python setup.py install”)。

在本视频的第一部分找到答案:How to Install Python Package from GitHub

关于python - 在 Conda 虚拟环境中使用来自 Github 的包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46076754/

相关文章:

ipython-notebook - 如何在不启动内核的情况下使用 Ipython Notebook/Jupyter 打开 Notebook?

python - 在没有 while 循环的情况下更新 wx.gauge

Python 2.7 有意使用 .items 而不是 .iteritems

javascript - Flask-Admin 自定义 Select2 Ajax 字段

git - IntelliJ IDEA 与 Git 记住作者

git - 如何提取和删除 Git 中的 merge 分支?

python - Matplotlib - 停止动画

git - 如何将另一个文件添加到我的 pull 请求中?

python - 如何在VScode中设置jupyter的运行文件路径?

jupyter-notebook - 用于 jupyter notebook/lab 的 Vim 绑定(bind),例如 Colab