2016-07-15 218 views
0

我嘗試安裝最新的(2.0.0rc5)版本的azure pip軟件包,但pip堅持要安裝1.0.3。無法升級(安裝最新版本)的azure pip模塊

# pip install --upgrade azure 
Requirement already up-to-date: azure in /usr/local/lib/python2.7/site-packages 
[...] 

# pip show azure 
--- 
Metadata-Version: 1.1 
Name: azure 
Version: 1.0.3 
Summary: Microsoft Azure Client Libraries for Python 
[...] 

azure (2.0.0rc5)       - Microsoft Azure Client Libraries for Python 
INSTALLED: 1.0.3 
LATEST: 2.0.0rc5 

我想,也許有緩存的問題,並從here

  • 嘗試都建議刪除緩存目錄
  • 不使用cache選項

# pip install --upgrade azure --no-cache-dir Requirement already up-to-date: azure in /usr/local/lib/python2.7/site-packages [...]

我使用的是最新的與沖泡安裝MacOSX上(8.1.2)的種子。

回答

0

我發現pre選項和pip install --upgrade azure --pre的作品。

pip show azure [...] Metadata-Version: 2.0 Name: azure Version: 2.0.0rc5 Summary: Microsoft Azure Client Libraries for Python [...]

而且Ansible建議不(https://docs.ansible.com/ansible/guide_azure.html