尝试为特定 Python 版本创建 Pipfile,但 pipenv 无法检测到已安装的 Python 版本存在。使用asdf安装和管理 Python 版本。
↪ python --version
Python 3.6.6
↪ pipenv --python 3.6.6
Warning: Python 3.6.6 was not found on your system…
You can specify specific versions of Python with:
$ pipenv --python path/to/python
↪ asdf current python
3.6.6 (set by /Users/dennis/some/project/.tool-versions)
请您参考如下方法:
为所需的 Python 版本重新创建填充程序,然后重试。
↪ asdf update
↪ asdf reshim python 3.6.6
↪ pipenv --python 3.6.6
Creating a virtualenv for this project…
