direnv
El Capitan(10.11.3)にdirenv+virtualenvでpython環境構築
基本はこれ qiita.com
$ direnv allow
実行したら下記エラー
Installing setuptools, pip, wheel... Complete output from command /Users/xxxxxx/work/p...on-3.5.1/bin/python3 - setuptools pip wheel: Traceback (most recent call last): File "<stdin>", line 7, in <module> File "/Library/Python/2.7/site-packages/virtualenv_support/pip-8.1.1-py2.py3-none-any.whl/pip/__init__.py", line 16, in <module> File "/Library/Python/2.7/site-packages/virtualenv_support/pip-8.1.1-py2.py3-none-any.whl/pip/vcs/subversion.py", line 9, in <module> File "/Library/Python/2.7/site-packages/virtualenv_support/pip-8.1.1-py2.py3-none-any.whl/pip/index.py", line 30, in <module> File "/Library/Python/2.7/site-packages/virtualenv_support/pip-8.1.1-py2.py3-none-any.whl/pip/wheel.py", line 39, in <module> File "/Library/Python/2.7/site-packages/virtualenv_support/pip-8.1.1-py2.py3-none-any.whl/pip/_vendor/distlib/scripts.py", line 14, in <module> File "/Library/Python/2.7/site-packages/virtualenv_support/pip-8.1.1-py2.py3-none-any.whl/pip/_vendor/distlib/compat.py", line 66, in <module> ImportError: cannot import name 'HTTPSHandler' ---------------------------------------- ...Installing setuptools, pip, wheel...done. Traceback (most recent call last): File "/Library/Python/2.7/site-packages/virtualenv.py", line 2316, in <module> main() File "/Library/Python/2.7/site-packages/virtualenv.py", line 708, in main symlink=options.symlink) File "/Library/Python/2.7/site-packages/virtualenv.py", line 941, in create_environment download=download, File "/Library/Python/2.7/site-packages/virtualenv.py", line 897, in install_wheel call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT) File "/Library/Python/2.7/site-packages/virtualenv.py", line 792, in call_subprocess % (cmd_desc, proc.returncode)) OSError: Command /Users/xxxxxx/work/p...on-3.5.1/bin/python3 - setuptools pip wheel failed with error code 1 direnv: error exit status 1
この対応で成功