[英]"pyenv versions" and "python -V" showing different versions
I need to use python 3.8.我需要使用 python 3.8。 I installed it using the following command:
我使用以下命令安装了它:
pyenv install 3.8.1
Now the output of pyenv versions
is:现在
pyenv versions
的输出是:
system
* 3.8.1 (set by /Users/username/.pyenv/version)
Output of python -V
: python -V
输出:
Python 2.7.16
Why are they different?他们为什么不同?
Try eval "$(pyenv init --path)"
.尝试
eval "$(pyenv init --path)"
。 That worked for me.那对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.