Open yujinyuz opened 2 years ago
I'm getting an error after installing from requirements.txt using pip install -r requirements.txt
requirements.txt
pip install -r requirements.txt
Collecting django-summernote<0.9,>=0.8 Using cached django-summernote-0.8.20.0.tar.gz (288 kB) Preparing metadata (setup.py) ... error ERROR: Command errored out with exit status 1: command: /Users/me/.local/share/virtualenvs/bytedeck/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/j8/q_gwjyxs1hz8sbr2vwjd6zph0000gn/T/pip-install-_7pttum3/django-summernote_102f3deed9e44171b0e7cd292be81a17/setup.py'"'"'; __file__='"'"'/private/var/folders/j8/q_gwjyxs1hz8sbr2vwjd6zph0000gn/T/pip-install-_7pttum3/django-summernote_102f3deed9e44171b0e7cd292be81a17/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/j8/q_gwjyxs1hz8sbr2vwjd6zph0000gn/T/pip-pip-egg-info-x2f7rlcy cwd: /private/var/folders/j8/q_gwjyxs1hz8sbr2vwjd6zph0000gn/T/pip-install-_7pttum3/django-summernote_102f3deed9e44171b0e7cd292be81a17/ Complete output (7 lines): Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/folders/j8/q_gwjyxs1hz8sbr2vwjd6zph0000gn/T/pip-install-_7pttum3/django-summernote_102f3deed9e44171b0e7cd292be81a17/setup.py", line 3, in <module> from django_summernote import version, PROJECT File "/private/var/folders/j8/q_gwjyxs1hz8sbr2vwjd6zph0000gn/T/pip-install-_7pttum3/django-summernote_102f3deed9e44171b0e7cd292be81a17/django_summernote/__init__.py", line 8, in <module> from django import VERSION as django_version ImportError: cannot import name 'VERSION' from 'django' (unknown location)
Doing a from django import VERSION as django_version inside python manage.py shell works
from django import VERSION as django_version
python manage.py shell
It will install 0.8.11.6 instead
0.8.11.6
However, running pip install "django-summernote>=0.8,<0.9" separately works
pip install "django-summernote>=0.8,<0.9"
I'm getting an error after installing from
requirements.txt
usingpip install -r requirements.txt
Doing a
from django import VERSION as django_version
insidepython manage.py shell
worksIt will install
0.8.11.6
insteadHowever, running
pip install "django-summernote>=0.8,<0.9"
separately works