我運行到哪裏執行pip install python-sdk-auth
一個問題,我得到這個錯誤:可以使用pip搜索PyPI包,但無法安裝。 easy_install的正常工作
Could not find a version that satisfies the requirement python-sdk-auth (from versions:) No matching distribution found for python-sdk-auth
這個包始建運行:
python setup.py bdist_egg --exclude-source-files
到只包含.pyc
文件 並通過此上傳twine
:
twine upload dist/<packagename>.egg
這裏有更多的觀察:
- 我能
pip search python-sdk-auth
和包裝似乎是存在於包目錄。 - 我可以做
easy_install python-sdk-auth
,並且軟件包將成功安裝。 - 我正在運行python v2.7。
看來我可以通過easy_install
來做到這一點,但不是pip
。我的主要目的是讓這個軟件包成爲另一個軟件包的依賴關係(通過setup.py
中的install_requires
參數指定,但似乎甚至通過pip install
在virtualenv
環境中安裝此程序會引發上述錯誤。謝謝!
跟進:這都與使用不同設備的格式,當它最初被上傳到PyPI將PIP VS easy_install的呢? https://packaging.python.org/pip_easy_install/請參閱:比較表中的安裝格式。 – tzhenghao