【问题标题】:pip install -r <file> causes "Could not find a version that satisfies the requirement ..." errorpip install -r <file> 导致“找不到满足要求的版本...”错误
【发布时间】:2015-10-13 13:09:43
【问题描述】:

我正在尝试在新的 virtualenv 中为我的项目安装依赖项。

要求包含在一个文件 (requirements.txt) 中,该文件包含 pip freeze 的输出。

这是它的内容:

dj-database-url==0.3.0
Django==1.8.3
django-classy-tags==0.6.2
django-cms==3.1.2
django-reversion==1.8.7
django-sekizai==0.8.2
Django-Select2==4.3.1
django-treebeard==3.0
djangocms-admin-style==0.2.7
djangocms-column==1.5
djangocms-file==0.1
djangocms-flash==0.2.0
djangocms-googlemap==0.3
djangocms-inherit==0.1
djangocms-installer==0.7.9
djangocms-link==1.6.2
djangocms-picture==0.1
djangocms-style==1.5
djangocms-teaser==0.1
djangocms-text-ckeditor==2.5.4.dev1
djangocms-video==0.1
html5lib==0.999999
Pillow==2.9.0
pytz==2015.4
six==1.9.0
tzlocal==1.2
wheel==0.24.0

djangocms-installer 一起安装的一些依赖项(用于生成djangocms 项目的工具)。然后我制作了pip freeze 来生成requirements.txt>

但是为什么当我尝试启动一个新的 virtualenv 以在另一台计算机上工作时,当我运行 pip install -r requirements.txt 时,我的输出末尾会出现以下错误?

Collecting djangocms-text-ckeditor==2.5.4.dev1 (from -r requirements.txt (line 20))
  Could not find a version that satisfies the requirement djangocms-text-ckeditor==2.5.4.dev1 (from -r requirements.txt (line 20)) (from versions: 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.0.10, 1.0.11, 2.0.0, 2.0.1, 2.0.2, 2.0.4, 2.0.5, 2.0.6, 2.1, 2.1.1, 2.1.2, 2.1.3, 2.1.4, 2.1.5, 2.1.6, 2.2.0, 2.3.0, 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.5.0b1, 2.5.0, 2.5.1, 2.5.2, 2.5.3)
  Some externally hosted files were ignored as access to them may be unreliable (use --allow-external djangocms-text-ckeditor to allow).
No matching distribution found for djangocms-text-ckeditor==2.5.4.dev1 (from -r requirements.txt (line 20))

我该如何解决这个问题?

我已经用--allow-external--allow-all-external--allow-unverified参数重试了,但错误仍然存​​在。

【问题讨论】:

标签: pip django-cms requirements.txt


【解决方案1】:

我终于把djangocms-text-ckeditor==2.5.4.dev1换成了github链接(git+git://github.com/divio/djangocms-text-ckeditor.git)。

而且它有效!

【讨论】:

    猜你喜欢
    • 2016-12-18
    • 2020-10-21
    • 2021-12-25
    • 2019-01-06
    • 1970-01-01
    • 2018-02-22
    • 1970-01-01
    • 2021-03-12
    • 1970-01-01
    相关资源
    最近更新 更多