Traceback (most recent call last):

 "<string>", line 1, in <module>LookupError: no codec search functions registered: can't find encoding
Traceback (most recent call last):


 "/usr/local/Cellar/pipenv/2018.7.1/libexec/bin/pipenv", line 11, in <module>

load_entry_point('pipenv==2018.7.1', 'console_scripts', 'pipenv')()


 "/usr/local/Cellar/pipenv/2018.7.1/libexec/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 722, in __call__

return self.main(*args, **kwargs)


 "/usr/local/Cellar/pipenv/2018.7.1/libexec/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 697, in main

rv = self.invoke(ctx)


 "/usr/local/Cellar/pipenv/2018.7.1/libexec/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 1043, in invoke

return Command.invoke(self, ctx)


 "/usr/local/Cellar/pipenv/2018.7.1/libexec/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 895, in invoke

return ctx.invoke(self.callback, **ctx.params)


 "/usr/local/Cellar/pipenv/2018.7.1/libexec/lib/python3.7/site-packages/pipenv/vendor/click/core.py", line 535, in invoke

return callback(*args, **kwargs)


 "/usr/local/Cellar/pipenv/2018.7.1/libexec/lib/python3.7/site-packages/pipenv/vendor/click/decorators.py", line 17, in new_func

return f(get_current_context(), *args, **kwargs)


 "/usr/local/Cellar/pipenv/2018.7.1/libexec/lib/python3.7/site-packages/pipenv/cli.py", line 294, in cli

three=three, python=python, warn=True, site_packages=site_packages, pypi_mirror=pypi_mirror


 "/usr/local/Cellar/pipenv/2018.7.1/libexec/lib/python3.7/site-packages/pipenv/core.py", line 639, in ensure_project

ensure_pipfile(validate=validate, skip_requirements=skip_requirements, system=system)


 "/usr/local/Cellar/pipenv/2018.7.1/libexec/lib/python3.7/site-packages/pipenv/core.py", line 244, in ensure_pipfile

python = which('python') if not (USING_DEFAULT_PYTHON or system) else None


 "/usr/local/Cellar/pipenv/2018.7.1/libexec/lib/python3.7/site-packages/pipenv/core.py", line 115, in which

p = os.path.join(location, 'bin', command)


 "/usr/local/Cellar/pipenv/2018.7.1/libexec/bin/../lib/python3.7/posixpath.py", line 80, in join

a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
