python - Pip install from Private Repo
问题描述
I am trying to pip install from a private repo. I can clone from my repo and push and pull and that works fine so I think my public and private keys are fine I have read as much as I could but can't seem to get around the error.
Using a Mac, Here is what I am trying.
(venv) Mac:Projects$ pip install git+ssh://git@github.com/private_repo/git_stuff.git#egg=git_stuff
Error:
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
IOError: [Errno 2] No such file or directory: '/private/var/folders/3d/s4d37gtgd1dfgfg18tmfd_nvsdfr1111gn/x/pip-install-abcdfs/git-stuff/setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/3d/s4d37gtgd1dfgfg18tmfd_nvsdfr1111gn/x/pip-install-7RccWF/git-stuff/
setup.py file on project
setuptools.setup(
name="git_stuff",
version="0.0.1",
author="Example Author",
author_email="test.com",
description="A small example package",
url="https://github.com/private_repo/git_stuff.git",
packages=setuptools.find_packages(),
)
Things I have tried:
- Updating setup tools. version setuptools 40.4.3
- Updating pip . version 18.0
Python version 2.7.10
解决方案
推荐阅读
- php - 在 PHP 函数中添加多行
- javascript - 由 JavaScript 中的 Class 实例添加的 RemoveEventListener
- c - 如何在 C 中生成这种模式?
- javascript - 如何测试 Quasar(作为 Vue CLI 插件)?
- php - PHP - 从上传客户端文件到 PHP 将其保存在 tmp 文件中的过程是什么
- android - 有没有什么方法可以在不制作移动应用程序的情况下开发蓝牙设备在移动设备中弹出?
- csv - 使用 apache-nifi 将值替换为流文件中的变量
- android - 执行后台任务的最佳方法是什么?
- linux - “find -readable” 查找不可读的文件夹
- corda - 在 Docker 容器中包含 RPCClient