pyenv,virtualenv,autoenv无法识别python

时间:2016-08-03 02:19:14

标签: python virtualenv pyenv

我正在使用pyenv, virtualenv, autoenv。 当我激活pyenv时,它显示错误。

Chois@Chois-MacPro ~ $pyenv activate chacha_dabang
pyenv-virtualenv: prompt changing will be removed from future release. configure `export PYENV_VIRTUALENV_DISABLE_PROMPT=1' to simulate the behavior.
(chacha_dabang) Chois@Chois-MacPro ~ $python
pyenv: python3.5: command not found

The `python3.5' command exists in these Python versions:
  3.5.1

所以,我查看了which

(chacha_dabang) Chois@Chois-MacPro ~ $which python
/Users/Chois/.pyenv/shims/python

我用这个执行python:

(chacha_dabang) Chois@Chois-MacPro ~ $/Users/Chois/.pyenv/shims/python
Python 3.5.1 (default, Aug  3 2016, 11:09:57)
[GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

效果很好!!!

我不知道为什么当我只输入python

时它不起作用

需要你的帮助。

这是我的PATH

Chois@Chois-MacPro ~ $echo $PATH
/Usr/local/Cellar/pyenv-virtualenv/20160716/shims:/Users/Chois/.pyenv/shims:/opt/local/bin:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Users/Chois/Library:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin:/Users/Chois/phantomjs-1.9.2-macosx/bin

.pyenv

Chois@Chois-MacPro versions $pwd
/Users/Chois/.pyenv/versions
Chois@Chois-MacPro versions $ls
3.5.1         chacha_dabang

0 个答案:

没有答案