Установка яйца через пипс - PullRequest
       104

Установка яйца через пипс

0 голосов
/ 24 февраля 2019

Я могу успешно установить egg для morfeusz2 через

python -m easy_install http://sgjp.pl/morfeusz/download/20181014/ubuntu-xenial/morfeusz2-0.4.0-py3.7-win-amd64.egg

Однако все остальные зависимости я определяю через requirements.txt.Я хотел бы, чтобы все они были определены последовательно.morfeusz2 отсутствует в любом репозитории PyPI.Как я могу определить зависимости для моего проекта в согласованном порядке?

Например, я попытался определить следующий requirements.txt файл:

django
pint
http://sgjp.pl/morfeusz/download/20181014/ubuntu-xenial/morfeusz2-0.4.0-py3.7-win-amd64.egg

Однако при запуске pip install -r requirements.txt происходит сбой с:

(mealplanner) D:\Projects-intellij\djangoproject\mealplanner>pip install -r requirementx.txt
Collecting http://sgjp.pl/morfeusz/download/20181014/ubuntu-xenial/morfeusz2-0.4.0-py3.7-win-amd64.egg (from -r requirementx.txt (line 3))
  Downloading http://sgjp.pl/morfeusz/download/20181014/ubuntu-xenial/morfeusz2-0.4.0-py3.7-win-amd64.egg (7.7MB)
    100% |████████████████████████████████| 7.7MB 11.4MB/s
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\oem\virtualenv\mealplanner\lib\tokenize.py", line 447, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\OEM\\AppData\\Local\\Temp\\pip-req-build-xucfpk6m\\setup.py'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\OEM\AppData\Local\Temp\pip-req-build-xucfpk6m\

Как мне установить яйцо с помощью pip install?

...