简体   繁体   English

Pip安装未获取最新版本

[英]Pip install does not fetch the latest version

I want to install the latest django-froala-editor version. 我想安装最新的django-froala-editor版本。

But pip install keeps installing the django-froala-editor version 2.0.1. 但是pip install会继续安装django-froala-editor版本2.0.1。

Steps to reproduce the problem. 重现此问题的步骤。

(using virtualenvwrapper to ease the test) (使用virtualenvwrapper简化测试)

mktmpenv
pip search froala
pip install django-froala-editor

The version 2.0.1 gets installed, even though the 2.3.2 is present on the pypi website and the pip search shows a 2.1.0 version. 即使pypi网站上存在 2.3.2 ,并且pip搜索显示了2.1.0版本,也会安装版本2.0.1

屏幕截图2016-06-13 at 10 40 41

OS. 操作系统。

OS X Yosemity 10.10.5, pip version 8.1.2, python 2.7 OS X Yosemity 10.10.5,pip版本8.1.2,python 2.7

Install directly from git if you can't get the latest version from pypi: 如果无法从pypi获取最新版本,则直接从git安装:

pip install git+https://github.com/froala/django-froala-editor

This can be included in your requirements.txt as git+https://github.com/froala/django-froala-editor 这可以作为git+https://github.com/froala/django-froala-editor包含在您的requirements.txt中

Generally, 通常,

pip install git+{url to repo}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM