我創建了一個環境,並通過添加的git包的Django paramfield:皮普凍結不顯示要求的版本庫路徑文件
$ pip install git+https://bitbucket.org/DataGreed/django-paramfield.git
Downloading/unpacking git+https://bitbucket.org/DataGreed/django-paramfield.git
Cloning https://bitbucket.org/DataGreed/django-paramfield.git to /var/folders/9Z/9ZQZ1Q3WGMOW+JguzcBKNU+++TI/-Tmp-/pip-49Eokm-build
Unpacking objects: 100% (29/29), done.
Running setup.py egg_info for package from git+https://bitbucket.org/DataGreed/django-paramfield.git
Installing collected packages: paramfield
Running setup.py install for paramfield
Successfully installed paramfield
Cleaning up...
但是,當我想創建一個需求文件,我只有看到包名稱:
$ pip freeze
paramfield==0.1
wsgiref==0.1.2
我怎樣才能使輸出整串git+https://bitbucket.org/DataGreed/django-paramfield.git
,而不是僅僅一個包的名字嗎?該軟件包不在PyPi中。
UPD:也許它必須用setup.py做點什麼?我應該改變它以反映回購網址嗎?
UPD2:我發現相當的計算器類似question,但作者不知道他是怎麼設法解決問題和接受的答案沒有給出一個很好的提示遺憾的是,雖然從作者的評論判斷它與setup.py文件有關。
UPD3:我試過在setup.py中通過download_url
,並通過pip安裝這個包,但問題依然存在。
聽起來好像這是PIP或錯誤的文檔中的疏忽。告訴他們https://github.com/pypa/pip/issues – 2012-07-24 09:53:46
謝謝,我已經提交了一個問題 - https://github.com/pypa/pip/issues/609 – DataGreed 2012-07-24 13:27:13