Member 12731696 Ответов: 1

Почему pip install django-celery-beat выдает ошибки в среде python3.6?


Всем привет

Я уже установил djang-celery-beat в другой среде python с python 3.5 и django 1.11. Но когда я пытаюсь установить то же самое в среде с python 3.6 и django 2.0, он терпит неудачу и выдает какую-то ошибку, которую я не могу найти в сети. Пожалуйста, помогите мне установить его.

Я использую Ubuntu 16.04.3 LTS

Что я уже пробовал:

(aienv) thebitshoes@thebitshoes-ux:~/Desktop/aienv$   pip install django-celery-beat
Collecting django-celery-beat
  Using cached django_celery_beat-1.1.0-py2.py3-none-any.whl
Requirement already satisfied: celery<5.0,>=4.0 in ./lib/python3.6/site-packages (from django-celery-beat)
Collecting ephem>=3.7.6.0 (from django-celery-beat)
  Using cached ephem-3.7.6.0.tar.gz
Requirement already satisfied: kombu<5.0,>=4.0.2 in ./lib/python3.6/site-packages (from celery<5.0,>=4.0->django-celery-beat)
Requirement already satisfied: billiard<3.6.0,>=3.5.0.2 in ./lib/python3.6/site-packages (from celery<5.0,>=4.0->django-celery-beat)
Requirement already satisfied: pytz>dev in ./lib/python3.6/site-packages (from celery<5.0,>=4.0->django-celery-beat)
Requirement already satisfied: amqp<3.0,>=2.1.4 in ./lib/python3.6/site-packages (from kombu<5.0,>=4.0.2->celery<5.0,>=4.0->django-celery-beat)
Requirement already satisfied: vine>=1.1.3 in ./lib/python3.6/site-packages (from amqp<3.0,>=2.1.4->kombu<5.0,>=4.0.2->celery<5.0,>=4.0->django-celery-beat)
Building wheels for collected packages: ephem
  Running setup.py bdist_wheel for ephem ... error
  Complete output from command /home/thebitshoes/Desktop/aienv/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-7t39jbdx/ephem/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmp55eroy8ypip-wheel- --python-tag cp36:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.6
  creating build/lib.linux-x86_64-3.6/ephem
  copying ephem/__init__.py -> build/lib.linux-x86_64-3.6/ephem
  copying ephem/cities.py -> build/lib.linux-x86_64-3.6/ephem
  copying ephem/stars.py -> build/lib.linux-x86_64-3.6/ephem
  creating build/lib.linux-x86_64-3.6/ephem/tests
  copying ephem/tests/__init__.py -> build/lib.linux-x86_64-3.6/ephem/tests
  copying ephem/tests/test_rst.py -> build/lib.linux-x86_64-3.6/ephem/tests
  copying ephem/tests/test_launchpad_244811.py -> build/lib.linux-x86_64-3.6/ephem/tests
  copying ephem/tests/test_usno.py -> build/lib.linux-x86_64-3.6/ephem/tests
  copying ephem/tests/test_bodies.py -> build/lib.linux-x86_64-3.6/ephem/tests
  copying ephem/tests/test_usno_equinoxes.py -> build/lib.linux-x86_64-3.6/ephem/tests
  copying ephem/tests/test_launchpad_236872.py -> build/lib.linux-x86_64-3.6/ephem/tests
  copying ephem/tests/test_cities.py -> build/lib.linux-x86_64-3.6/ephem/tests
  copying ephem/tests/test_dates.py -> build/lib.linux-x86_64-3.6/ephem/tests
  copying ephem/tests/test_angles.py -> build/lib.linux-x86_64-3.6/ephem/tests
  copying ephem/tests/test_github_issues.py -> build/lib.linux-x86_64-3.6/ephem/tests
  copying ephem/tests/test_stars.py -> build/lib.linux-x86_64-3.6/ephem/tests
  copying ephem/tests/test_jpl.py -> build/lib.linux-x86_64-3.6/ephem/tests
  copying ephem/tests/test_locales.py -> build/lib.linux-x86_64-3.6/ephem/tests
  copying ephem/tests/test_observers.py -> build/lib.linux-x86_64-3.6/ephem/tests
  copying ephem/tests/test_satellite.py -> build/lib.linux-x86_64-3.6/ephem/tests
  copying ephem/tests/test_constants.py -> build/lib.linux-x86_64-3.6/ephem/tests
  creating build/lib.linux-x86_64-3.6/ephem/doc
  copying ephem/doc/reference.rst -> build/lib.linux-x86_64-3.6/ephem/doc
  copying ephem/doc/newton.rst -> build/lib.linux-x86_64-3.6/ephem/doc
  copying ephem/doc/index.rst -> build/lib.linux-x86_64-3.6/ephem/doc
  copying ephem/doc/tutorial.rst -> build/lib.linux-x86_64-3.6/ephem/doc
  copying ephem/doc/faq.rst -> build/lib.linux-x86_64-3.6/ephem/doc
  copying ephem/doc/examples.rst -> build/lib.linux-x86_64-3.6/ephem/doc
  copying ephem/doc/coordinates.rst -> build/lib.linux-x86_64-3.6/ephem/doc
  copying ephem/doc/angle.rst -> build/lib.linux-x86_64-3.6/ephem/doc
  copying ephem/doc/rise-set.rst -> build/lib.linux-x86_64-3.6/ephem/doc
  copying ephem/doc/date.rst -> build/lib.linux-x86_64-3.6/ephem/doc
  copying ephem/doc/radec.rst -> build/lib.linux-x86_64-3.6/ephem/doc
  copying ephem/doc/catalogs.rst -> build/lib.linux-x86_64-3.6/ephem/doc
  copying ephem/doc/CHANGELOG.rst -> build/lib.linux-x86_64-3.6/ephem/doc
  copying ephem/doc/quick.rst -> build/lib.linux-x86_64-3.6/ephem/doc
  creating build/lib.linux-x86_64-3.6/ephem/tests/jpl
  copying ephem/tests/jpl/hyperion.txt -> build/lib.linux-x86_64-3.6/ephem/tests/jpl
  copying ephem/tests/jpl/europa.txt -> build/lib.linux-x86_64-3.6/ephem/tests/jpl
  copying ephem/tests/jpl/jupiter.txt -> build/lib.linux-x86_64-3.6/ephem/tests/jpl
  copying ephem/tests/jpl/oberon.txt -> build/lib.linux-x86_64-3.6/ephem/tests/jpl
  copying ephem/tests/jpl/saturn.txt -> build/lib.linux-x86_64-3.6/ephem/tests/jpl
  copying ephem/tests/jpl/neptune.txt -> build/lib.linux-x86_64-3.6/ephem/tests/jpl
  copying ephem/tests/jpl/uranus.txt -> build/lib.linux-x86_64-3.6/ephem/tests/jpl
  copying ephem/tests/jpl/mars.txt -> build/lib.linux-x86_64-3.6/ephem/tests/jpl
  copying ephem/tests/jpl/phobos.txt -> build/lib.linux-x86_64-3.6/ephem/tests/jpl
  creating build/lib.linux-x86_64-3.6/ephem/tests/usno
  copying ephem/tests/usno/appgeo_moon.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
  copying ephem/tests/usno/appgeo_jupiter.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
  copying ephem/tests/usno/moon_phases.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
  copying ephem/tests/usno/apptopo_deneb.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
  copying ephem/tests/usno/astrom_mercury.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
  copying ephem/tests/usno/astrom_neptune.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
  copying ephem/tests/usno/apptopo_sun.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
  copying ephem/tests/usno/riset_moon.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
  copying ephem/tests/usno/appgeo_sun.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
  copying ephem/tests/usno/astrom_antares.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
  copying ephem/tests/usno/appgeo_deneb.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
  copying ephem/tests/usno/risettran_rigel.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
  copying ephem/tests/usno/riset_sun.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
  copying ephem/tests/usno/risettran_moon.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
  copying ephem/tests/usno/apptopo_moon.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
  running build_ext
  building 'ephem._libastro' extension
  creating build/temp.linux-x86_64-3.6
  creating build/temp.linux-x86_64-3.6/extensions
  creating build/temp.linux-x86_64-3.6/libastro-3.7.6
  creating build/temp.linux-x86_64-3.6/extensions/data
  x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibastro-3.7.6 -I/usr/include/python3.6m -I/home/thebitshoes/Desktop/aienv/include/python3.6m -c extensions/_libastro.c -o build/temp.linux-x86_64-3.6/extensions/_libastro.o
  extensions/_libastro.c:3:20: fatal error: Python.h: No such file or directory
  compilation terminated.
  error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  
  ----------------------------------------
  Failed building wheel for ephem
  Running setup.py clean for ephem
Failed to build ephem
Installing collected packages: ephem, django-celery-beat
  Running setup.py install for ephem ... error
    Complete output from command /home/thebitshoes/Desktop/aienv/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-7t39jbdx/ephem/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-3qb244tu-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/thebitshoes/Desktop/aienv/include/site/python3.6/ephem:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    creating build/lib.linux-x86_64-3.6/ephem
    copying ephem/__init__.py -> build/lib.linux-x86_64-3.6/ephem
    copying ephem/cities.py -> build/lib.linux-x86_64-3.6/ephem
    copying ephem/stars.py -> build/lib.linux-x86_64-3.6/ephem
    creating build/lib.linux-x86_64-3.6/ephem/tests
    copying ephem/tests/__init__.py -> build/lib.linux-x86_64-3.6/ephem/tests
    copying ephem/tests/test_rst.py -> build/lib.linux-x86_64-3.6/ephem/tests
    copying ephem/tests/test_launchpad_244811.py -> build/lib.linux-x86_64-3.6/ephem/tests
    copying ephem/tests/test_usno.py -> build/lib.linux-x86_64-3.6/ephem/tests
    copying ephem/tests/test_bodies.py -> build/lib.linux-x86_64-3.6/ephem/tests
    copying ephem/tests/test_usno_equinoxes.py -> build/lib.linux-x86_64-3.6/ephem/tests
    copying ephem/tests/test_launchpad_236872.py -> build/lib.linux-x86_64-3.6/ephem/tests
    copying ephem/tests/test_cities.py -> build/lib.linux-x86_64-3.6/ephem/tests
    copying ephem/tests/test_dates.py -> build/lib.linux-x86_64-3.6/ephem/tests
    copying ephem/tests/test_angles.py -> build/lib.linux-x86_64-3.6/ephem/tests
    copying ephem/tests/test_github_issues.py -> build/lib.linux-x86_64-3.6/ephem/tests
    copying ephem/tests/test_stars.py -> build/lib.linux-x86_64-3.6/ephem/tests
    copying ephem/tests/test_jpl.py -> build/lib.linux-x86_64-3.6/ephem/tests
    copying ephem/tests/test_locales.py -> build/lib.linux-x86_64-3.6/ephem/tests
    copying ephem/tests/test_observers.py -> build/lib.linux-x86_64-3.6/ephem/tests
    copying ephem/tests/test_satellite.py -> build/lib.linux-x86_64-3.6/ephem/tests
    copying ephem/tests/test_constants.py -> build/lib.linux-x86_64-3.6/ephem/tests
    creating build/lib.linux-x86_64-3.6/ephem/doc
    copying ephem/doc/reference.rst -> build/lib.linux-x86_64-3.6/ephem/doc
    copying ephem/doc/newton.rst -> build/lib.linux-x86_64-3.6/ephem/doc
    copying ephem/doc/index.rst -> build/lib.linux-x86_64-3.6/ephem/doc
    copying ephem/doc/tutorial.rst -> build/lib.linux-x86_64-3.6/ephem/doc
    copying ephem/doc/faq.rst -> build/lib.linux-x86_64-3.6/ephem/doc
    copying ephem/doc/examples.rst -> build/lib.linux-x86_64-3.6/ephem/doc
    copying ephem/doc/coordinates.rst -> build/lib.linux-x86_64-3.6/ephem/doc
    copying ephem/doc/angle.rst -> build/lib.linux-x86_64-3.6/ephem/doc
    copying ephem/doc/rise-set.rst -> build/lib.linux-x86_64-3.6/ephem/doc
    copying ephem/doc/date.rst -> build/lib.linux-x86_64-3.6/ephem/doc
    copying ephem/doc/radec.rst -> build/lib.linux-x86_64-3.6/ephem/doc
    copying ephem/doc/catalogs.rst -> build/lib.linux-x86_64-3.6/ephem/doc
    copying ephem/doc/CHANGELOG.rst -> build/lib.linux-x86_64-3.6/ephem/doc
    copying ephem/doc/quick.rst -> build/lib.linux-x86_64-3.6/ephem/doc
    creating build/lib.linux-x86_64-3.6/ephem/tests/jpl
    copying ephem/tests/jpl/hyperion.txt -> build/lib.linux-x86_64-3.6/ephem/tests/jpl
    copying ephem/tests/jpl/europa.txt -> build/lib.linux-x86_64-3.6/ephem/tests/jpl
    copying ephem/tests/jpl/jupiter.txt -> build/lib.linux-x86_64-3.6/ephem/tests/jpl
    copying ephem/tests/jpl/oberon.txt -> build/lib.linux-x86_64-3.6/ephem/tests/jpl
    copying ephem/tests/jpl/saturn.txt -> build/lib.linux-x86_64-3.6/ephem/tests/jpl
    copying ephem/tests/jpl/neptune.txt -> build/lib.linux-x86_64-3.6/ephem/tests/jpl
    copying ephem/tests/jpl/uranus.txt -> build/lib.linux-x86_64-3.6/ephem/tests/jpl
    copying ephem/tests/jpl/mars.txt -> build/lib.linux-x86_64-3.6/ephem/tests/jpl
    copying ephem/tests/jpl/phobos.txt -> build/lib.linux-x86_64-3.6/ephem/tests/jpl
    creating build/lib.linux-x86_64-3.6/ephem/tests/usno
    copying ephem/tests/usno/appgeo_moon.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
    copying ephem/tests/usno/appgeo_jupiter.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
    copying ephem/tests/usno/moon_phases.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
    copying ephem/tests/usno/apptopo_deneb.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
    copying ephem/tests/usno/astrom_mercury.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
    copying ephem/tests/usno/astrom_neptune.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
    copying ephem/tests/usno/apptopo_sun.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
    copying ephem/tests/usno/riset_moon.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
    copying ephem/tests/usno/appgeo_sun.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
    copying ephem/tests/usno/astrom_antares.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
    copying ephem/tests/usno/appgeo_deneb.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
    copying ephem/tests/usno/risettran_rigel.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
    copying ephem/tests/usno/riset_sun.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
    copying ephem/tests/usno/risettran_moon.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
    copying ephem/tests/usno/apptopo_moon.txt -> build/lib.linux-x86_64-3.6/ephem/tests/usno
    running build_ext
    building 'ephem._libastro' extension
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/extensions
    creating build/temp.linux-x86_64-3.6/libastro-3.7.6
    creating build/temp.linux-x86_64-3.6/extensions/data
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ilibastro-3.7.6 -I/usr/include/python3.6m -I/home/thebitshoes/Desktop/aienv/include/python3.6m -c extensions/_libastro.c -o build/temp.linux-x86_64-3.6/extensions/_libastro.o
    extensions/_libastro.c:3:20: fatal error: Python.h: No such file or directory
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    
    ----------------------------------------
Command "/home/thebitshoes/Desktop/aienv/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-7t39jbdx/ephem/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-3qb244tu-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/thebitshoes/Desktop/aienv/include/site/python3.6/ephem" failed with error code 1 in /tmp/pip-build-7t39jbdx/ephem/

1 Ответов

Рейтинг:
2

Richard MacCutchan

extensions/_libastro.c:3:20: fatal error: Python.h: No such file or directory

Вам нужно выяснить, почему этот заголовочный файл отсутствует в дистрибутиве. Проверьте каталоги, перечисленные на -I варианты исполнения gcc команда, предшествующая сообщению об ошибке.