我正在尝试在新的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
参数重试,但错误仍在此处。
答案 0 :(得分:1)
我最后用github链接(djangocms-text-ckeditor==2.5.4.dev1
)替换了git+git://github.com/divio/djangocms-text-ckeditor.git
。
它有效!