markdown pipenv,pyenv,python

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown pipenv,pyenv,python相关的知识,希望对你有一定的参考价值。

## pipenv install lib failed
**Scenario desc:**
```Bash
# run pipenv command to install click lib but give error like
➜  click pipenv install click
Creating a virtualenv for this project…
Using /usr/local/opt/python/bin/python3.6 (None) to create virtualenv…
⠋Warning: it looks like /usr/local/opt/python/bin/python3.6 is not in your PATH. We cannot continue until this is resolved.

# this occured when I update python version to 3.7 ver brew, env info show like
➜  bin which pip3.7
/usr/local/bin/pip3.7
➜  bin which pipenv
/usr/local/bin/pipenv

# and I revert python version to 3.6 and this issue resolved
brew switch python 3.6.5_1
```

---------
Thinking about the relationship between pipenv and pyenv. 

They are total two different ecosystem of python.  
pyenv is to manage the python version when you want to fire python terminal in your terminal.  
and there is a virtualenv plugin for it called pyenv-virtualenv.  

pipenv is another tool to easy control the python version and third lib management.  
you can special the python version the first time you run pipenv --three/two.  

in conclusion, they are functionally like each other but total two different tool, can't work the same time.

以上是关于markdown pipenv,pyenv,python的主要内容,如果未能解决你的问题,请参考以下文章

python版本管理工具pyenv和包管理工具pipenv

pyenv和pipenv打造python环境

python利器——pipenv和pyenv介绍

python的各种包环境管理工具 virtualenv,pyenv,pipenv

markdown 来自Traversy Media的Pipenv Markdown

markdown pyenv + pyenv-virtualenv