简体   繁体   中英

Buildout not using pinned versions

When I try to run buildout for a existing project, which used to work perfectly fine, it now installs the incorrect version of Django, even though the version is pinned.

For some reason, it's installing Django 1.10 even though I've got 1.6 pinned. (I know that's an old version, but client doesn't want me to upgrade just yet.)

Here is a very trucated version of the the buildout config file.

[buildout]
index = https://pypi.python.org/simple
versions = versions
include-site-packages = false
extensions = mr.developer
unzip = true
newest = false

parts = ...
auto-checkout = *

eggs =
    <... Many eggs here ...>
    Django
    <... Many more eggs ...>


[base-versions]
...
Django = 1.6.1
...


[versions]
<= base-versions

The only other thing that I can think of that could possibly make an impact is that I recently reinstalled my system to Kubuntu 18.04 (Was previously Ubuntu 17.10)

它不起作用的原因是因为[versions]部分无法扩展

Pip can install a specific version of library using pip, you can try:

pip install django==1.6.1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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