我想使用Homebrew安装pipenv,参见这里。
首先,我运行了$ brew install pipenv
。然后,brew自动安装了Python 3.7,并且我可以正常使用pipenv。但是,我想在Python 3.6上使用pipenv,所以我运行了$ brew switch python 3.7 3.6.5
,然后当我尝试$ pipenv install
时,会出现以下错误:
dyld: Library not loaded: @executable_path/../.Python
Referenced from: /usr/local/Cellar/pipenv/2018.11.26/libexec/bin/python3.7
Reason: image not found
Abort trap: 6
有没有办法在Python 3.6.5上安装pipenv呢?
谢谢。