Как мне заставить pip установить определенную версию meld?

#python #pip #meld

#python #pip #meld

Вопрос:

Пытаясь следовать этому руководству https://rayed.com/wordpress/?p=1496 Я пытаюсь заставить supervisor сгенерировать свой conf-файл, но это не удается, потому что ему нужен meld3>= 0.6.5, и, по-видимому, meld3 1.0.2 не учитывается. Попробовав различные решения на https://github.com/puphpet/puphpet/issues/1492 Я хочу последовать предложению pbylina о понижении версии до meld3 1.0.0, но, в отличие от pbylina, я получаю ошибки при попытке установить эту версию meld:

 # pip install meld3==1.0.0
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Collecting meld3==1.0.0
/usr/lib/python2.6/site-packages/pip-8.1.2-py2.6.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/lib/python2.6/site-packages/pip-8.1.2-py2.6.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
  Downloading meld3-1.0.0.tar.gz
    Complete output from command python setup.py egg_info:
    /usr/lib64/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'install_requires'
      warnings.warn(msg)
    /usr/lib64/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'test_suite'
      warnings.warn(msg)
    usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: -c --help [cmd1 cmd2 ...]
       or: -c --help-commands
       or: -c cmd --help

    error: invalid command 'egg_info'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-zhFMlS/meld3/
  

Как мне перейти с meld 1.0.2 на 1.0.0?

Комментарии:

1. Вы можете удалить текущий пакет, а затем установить версию 1.0.0.

2. Та же ошибка после удаления meld: # pip удаление meld3 — snip — Успешно удален meld3-1.0.2 # pip установка meld3==1.0.0 — snip — ошибка: недопустимая команда ‘egg_info’ —————————————- Команда «python setup.py egg_info» сбой с кодом ошибки 1 в /tmp/pip-build-jyN3N1/meld3/