2016-11-25 168 views
1

我試圖將從2.5.3升級到最新版本2.6.0pip install dateutil --upgrade,但得到了問題Could not find a version升級Python包dateutil:找不到版本

$ pip install dateutil --upgrade 
Collecting dateutil 
    Could not find a version that satisfies the requirement dateutil (from versions:) 
No matching distribution found for dateutil 

我查了帖子Could not find a version that satisfies the requirement。運行pip freeze | grep dateutil得到,

$ pip freeze | grep dateutil 
python-dateutil==2.5.3 

我怎麼知道哪個版本滿足我的機器?是否有可能將dateutil升級到最新版本?

回答

7

這是

pip install python-dateutil --upgrade 
+0

謝謝。 'sudo pip install python-dateutil --upgrade'適用於我。 – SparkAndShine