Mac에서 django-heroku를 설치할 수 없습니다.

LD

Heroku에서 Django 앱을 호스팅하려고합니다. 응용 프로그램은 오랫동안 내가 사용하지 않는만큼 내 컴퓨터에서 잘 작동합니다 django-heroku(I 그것을 설치할 수 있기 때문에), 그리고 한이 같은 Heroku가에서 잘 작동 않습니다 있습니다 django-heroku. 이것은 시급한 문제는 아니지만 django-heroku내 컴퓨터에서 편집하기 위해 제거 하고 heroku로 푸시하기 전에 다시 삽입해야하는 것은 일종의 성가신 일입니다.

이상적인 솔루션은 django-heroku내 컴퓨터에 설치하는 것입니다.

명세서:

  • macOS를 실행하는 Mac
  • Conda 환경, Python 3.7 및 3.8

지금까지 찾은 내용은 다음과 같습니다.

  • /Users/lucas/opt/anaconda3/lib/python3.7/site-packages/pip(python 3.7)의 pip 20.0.2 :
    • 설치할 수 없습니다 django-heroku(아래 오류 참조).
  • /Users/lucas/Library/Python/3.7/lib/python/site-packages/pip(python 3.7)의 pip 20.1.1 :
    • django-heroku그러나 다음을 설치할 수 있습니다 .
    • 이 경고를 표시합니다. (여전히 문제없이 설치됨)
      • 경고 : pip는 이전 스크립트 래퍼에 의해 호출됩니다. 이것은 향후 버전의 pip에서 실패합니다. 근본적인 문제 해결에 대한 조언 https://github.com/pypa/pip/issues/5599참조 하십시오 . 이 문제를 피하려면 pip를 직접 실행하는 대신 '-m pip'로 Python을 호출 할 수 있습니다.

    • 환경의 모든 파이썬으로 스크립트를 실행하면 no module called django_heroku

설치할 수없는 첫 번째 버전의 pip django-heroku는 다음 오류를 제공합니다.

pip install django-heroku
Collecting django-heroku
  Using cached django_heroku-0.3.1-py2.py3-none-any.whl (6.2 kB)
Collecting psycopg2
  Using cached psycopg2-2.8.5.tar.gz (380 kB)
    ERROR: Command errored out with exit status 1:
     command: /Users/lucas/opt/anaconda3/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/r1/c30g6kr946l2czzpkr2mvrd80000gn/T/pip-install-q1m4s1hh/psycopg2/setup.py'"'"'; __file__='"'"'/private/var/folders/r1/c30g6kr946l2czzpkr2mvrd80000gn/T/pip-install-q1m4s1hh/psycopg2/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/r1/c30g6kr946l2czzpkr2mvrd80000gn/T/pip-install-q1m4s1hh/psycopg2/pip-egg-info
         cwd: /private/var/folders/r1/c30g6kr946l2czzpkr2mvrd80000gn/T/pip-install-q1m4s1hh/psycopg2/
    Complete output (23 lines):
    running egg_info
    creating /private/var/folders/r1/c30g6kr946l2czzpkr2mvrd80000gn/T/pip-install-q1m4s1hh/psycopg2/pip-egg-info/psycopg2.egg-info
    writing /private/var/folders/r1/c30g6kr946l2czzpkr2mvrd80000gn/T/pip-install-q1m4s1hh/psycopg2/pip-egg-info/psycopg2.egg-info/PKG-INFO
    writing dependency_links to /private/var/folders/r1/c30g6kr946l2czzpkr2mvrd80000gn/T/pip-install-q1m4s1hh/psycopg2/pip-egg-info/psycopg2.egg-info/dependency_links.txt
    writing top-level names to /private/var/folders/r1/c30g6kr946l2czzpkr2mvrd80000gn/T/pip-install-q1m4s1hh/psycopg2/pip-egg-info/psycopg2.egg-info/top_level.txt
    writing manifest file '/private/var/folders/r1/c30g6kr946l2czzpkr2mvrd80000gn/T/pip-install-q1m4s1hh/psycopg2/pip-egg-info/psycopg2.egg-info/SOURCES.txt'

    Error: pg_config executable not found.

    pg_config is required to build psycopg2 from source.  Please add the directory
    containing pg_config to the $PATH or specify the full executable path with the
    option:

        python setup.py build_ext --pg-config /path/to/pg_config build ...

    or with the pg_config option in 'setup.cfg'.

    If you prefer to avoid building psycopg2 from source, please install the PyPI
    'psycopg2-binary' package instead.

    For further information please check the 'doc/src/install.rst' file (also at
    <https://www.psycopg.org/docs/install.html>).

    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

나는 이런 일이 어떻게 작동하는지에 대한 전문가가 아니기 때문에 가능한 한 많은 정보를 포함 시켰습니다. 이에 대해 도움을 주시면 감사하겠습니다.

톰 캐릭

첫째, django-heroku더 이상 유지되지 않으므로 사용하지 않는 것이 좋습니다.

귀하의 문제 psycopg2는 오류에서 언급했듯이 django-heroku직접적으로가 아닙니다 . django-heroku따라 다르기 때문에 psycopg2설치 psycopg2-binary는 도움이되지 않을 것입니다. 그리고 이것에도 문제가있을 수 있습니다. OS X에서는 그렇게하지 않더라도 사이트를 제공하는 데 적합하지 않습니다.

작동하려면 PostgreSQL 라이브러리를 설치해야합니다.

brew install postgresql

몇 가지 사항에 따라 그 이후에도 문제가 발생할 수 있습니다. gcc 및 ssl에 대한 오류가 표시되면 다음을 실행 해 볼 수 있습니다.

setenv LDFLAGS "-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib"

물고기의 경우 또는 bash를 실행하는 경우 :

export LDFLAGS="-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib"

까다로울 수 있으므로 충분하지 않을 수 있습니다.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Ubuntu 18.04에 django-import-export를 설치할 수 없습니다.

분류에서Dev

GitHub 작업에 graphene-django를 설치할 수 없습니다.

분류에서Dev

conda 환경 (MAC)에서 pyAudio를 설치할 수 없습니다

분류에서Dev

Mac에서 Jenkins를 설치할 수 없습니다.

분류에서Dev

Linux Mint Path에 heroku toolbelt를 설치할 수 없습니다.

분류에서Dev

Mac OS X Mavericks에 Fay를 설치할 수 없습니다.

분류에서Dev

Mac mini 2020에 Ubuntu 20.04를 설치할 수 없습니다.

분류에서Dev

Mac에 Matplotlib를 설치할 수 없습니다.

분류에서Dev

Mac OSX 10.11.6에 pyqt4를 설치할 수 없습니다.

분류에서Dev

내 Mac에 스크래피를 설치할 수 없습니다

분류에서Dev

Mac에 Typescript를 설치할 수 없습니다.

분류에서Dev

Mac OS x 10.10에서 pip로 cffi를 설치할 수 없습니다.

분류에서Dev

Mac에서 NPM을 사용하여 lessc를 설치할 수 없습니다.

분류에서Dev

Eclipse를 설치할 수 없습니다 - Mac에서 "자바 가상 머신을 만들 수 없습니다"

분류에서Dev

내 앱에서 django-ckeditor를 설정할 수 없습니다.

분류에서Dev

Heroku 웹 응용 프로그램에 hashlib를 설치할 수 없습니다.

분류에서Dev

USB / DVD에서 Windows를 다시 설치할 수 없습니다.

분류에서Dev

Windows 10에서 Virtualbox를 다시 설치할 수 없습니다.

분류에서Dev

Ubuntu 16.04에서 VirtualBox를 다시 설치할 수 없습니다.

분류에서Dev

우분투에서 pip3을 사용하여 django 용 mysqlclient를 설치할 수 없습니다.

분류에서Dev

Mac에 OpenCv를 설치할 수 없음 : / usr / local에 파일이 없습니다.

분류에서Dev

Ubunutu 12.04에서 Skype를 설치할 수 없습니다.

분류에서Dev

Ubuntu 12.04에서 OpenVas를 설치할 수 없습니다.

분류에서Dev

R / RStudio에서 rJava를 설치할 수 없습니다

분류에서Dev

Windows64에서 mysqlclient를 설치할 수 없습니다

분류에서Dev

Windows 10에서 sdkmanager를 설치할 수 없습니다.

분류에서Dev

CRAN에서 xgboost를 설치할 수 없습니다.

분류에서Dev

Python 서버에 pip를 설치할 수 없습니다.

분류에서Dev

Pharo에서`Bloc` 패키지를 설치할 수 없습니다.

Related 관련 기사

  1. 1

    Ubuntu 18.04에 django-import-export를 설치할 수 없습니다.

  2. 2

    GitHub 작업에 graphene-django를 설치할 수 없습니다.

  3. 3

    conda 환경 (MAC)에서 pyAudio를 설치할 수 없습니다

  4. 4

    Mac에서 Jenkins를 설치할 수 없습니다.

  5. 5

    Linux Mint Path에 heroku toolbelt를 설치할 수 없습니다.

  6. 6

    Mac OS X Mavericks에 Fay를 설치할 수 없습니다.

  7. 7

    Mac mini 2020에 Ubuntu 20.04를 설치할 수 없습니다.

  8. 8

    Mac에 Matplotlib를 설치할 수 없습니다.

  9. 9

    Mac OSX 10.11.6에 pyqt4를 설치할 수 없습니다.

  10. 10

    내 Mac에 스크래피를 설치할 수 없습니다

  11. 11

    Mac에 Typescript를 설치할 수 없습니다.

  12. 12

    Mac OS x 10.10에서 pip로 cffi를 설치할 수 없습니다.

  13. 13

    Mac에서 NPM을 사용하여 lessc를 설치할 수 없습니다.

  14. 14

    Eclipse를 설치할 수 없습니다 - Mac에서 "자바 가상 머신을 만들 수 없습니다"

  15. 15

    내 앱에서 django-ckeditor를 설정할 수 없습니다.

  16. 16

    Heroku 웹 응용 프로그램에 hashlib를 설치할 수 없습니다.

  17. 17

    USB / DVD에서 Windows를 다시 설치할 수 없습니다.

  18. 18

    Windows 10에서 Virtualbox를 다시 설치할 수 없습니다.

  19. 19

    Ubuntu 16.04에서 VirtualBox를 다시 설치할 수 없습니다.

  20. 20

    우분투에서 pip3을 사용하여 django 용 mysqlclient를 설치할 수 없습니다.

  21. 21

    Mac에 OpenCv를 설치할 수 없음 : / usr / local에 파일이 없습니다.

  22. 22

    Ubunutu 12.04에서 Skype를 설치할 수 없습니다.

  23. 23

    Ubuntu 12.04에서 OpenVas를 설치할 수 없습니다.

  24. 24

    R / RStudio에서 rJava를 설치할 수 없습니다

  25. 25

    Windows64에서 mysqlclient를 설치할 수 없습니다

  26. 26

    Windows 10에서 sdkmanager를 설치할 수 없습니다.

  27. 27

    CRAN에서 xgboost를 설치할 수 없습니다.

  28. 28

    Python 서버에 pip를 설치할 수 없습니다.

  29. 29

    Pharo에서`Bloc` 패키지를 설치할 수 없습니다.

뜨겁다태그

보관