Traceback (most recent call last):


 "/usr/local/lib/python3.7/site-packages/django/contrib/sessions/backends/base.py", line 190, in _get_session

return self._session_cache
AttributeError: 'SessionStore' object has no attribute '_session_cache'

Traceback (most recent call last):


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_internal/cli/base_command.py", line 186, in _main

status = self.run(options, args)


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_internal/commands/install.py", line 404, in run

use_user_site=options.use_user_site,


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_internal/req/__init__.py", line 71, in install_given_reqs

**kwargs


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_internal/req/req_install.py", line 815, in install

warn_script_location=warn_script_location,


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_internal/operations/install/wheel.py", line 614, in install_wheel

warn_script_location=warn_script_location,


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_internal/operations/install/wheel.py", line 338, in install_unpacked_wheel

compileall.compile_dir(source, force=True, quiet=True)


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/compileall.py", line 97, in compile_dir

legacy, optimize, invalidation_mode):


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/compileall.py", line 169, in compile_file

msg = err.msg.encode(sys.stdout.encoding,


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip/_internal/utils/misc.py", line 554, in encoding

return self.orig_stream.encoding


 "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/codecs.py", line 409, in __getattr__

return getattr(self.stream, name)
AttributeError: '_io.BufferedWriter' object has no attribute 'encoding'
