- 操作系统 (MAC)
- Python版本:2.7.10
- Pipenv 版本:8.2.6
问题
1) setup.py inside invocations repo -> 安装 CaaS 包:
```
install_requires=[
'CaaS>=1.0'
],
dependency_links=[
'https://<private_repo>#egg=CaaS-1.0'
],
``` 2) 在 virtualenv 中安装调用
python setup.py install
3) 验证 CaaS 安装是否正确。```
(test_1) c4b301cf5d25:invocations quj291$ pip freeze
CaaS==1.0
```
到目前为止一切正常。
4)创建一个Pipfile
```
[requires]
python_version = '2.7'
[packages]
invocations = { git = 'git://<private-repo>/invocations', ref = 'master' }
```
5) 安装调用失败,因为找不到 CaaS 包:pipenv install
```
Collecting CaaS>=1.0 (from invocations)
Could not find a version that satisfies the requirement CaaS>=1.0 (from invocations) (from versions: )
No matching distribution found for CaaS>=1.0 (from invocations)
```
6)尝试 pipenv install --verbose
```
Collecting CaaS>=1.0 (from invocations)
1 location(s) to search for versions of CaaS:
* https://pypi.python.org/simple/caas/
Getting page https://pypi.python.org/simple/caas/
Looking up "https://pypi.python.org/simple/caas/" in the cache
No cache entry available
Starting new HTTPS connection (1): pypi.python.org
"GET /simple/caas/ HTTP/1.1" 404 33
Status code 404 not in [200, 203, 300, 301]
Could not fetch URL https://pypi.python.org/simple/caas/: 404 Client Error: Not Found (caas does not exist) for url: https://pypi.python.org/simple/caas/ - skipping
Cleaning up...
```
尝试从 pypi 获取 CaaS,而不是调用 setup.py 的内部依赖链接中的私有 github 存储库
这是预期的吗?如何安装 CaaS 包?
谢谢!