RT, LZ 最近在 pyenv 上安装 miniconda 时手贱升了下 conda 版本, 然后就发现用 pyenv virtualenv 生成的环境在 pyenv virtualenvs 列表里显示不出来了,大家有碰到这情况吗,如下:
pyenv virtualenvs
acc2 (created from /home/wukai/.pyenv/versions/acc2)
acc3 (created from /home/wukai/.pyenv/versions/acc3)
anaconda2-4.0.0 (created from /home/wukai/.pyenv/versions/anaconda2-4.0.0)
anaconda2-4.0.0/envs/acc2 (created from /home/wukai/.pyenv/versions/anaconda2-4.0.0/envs/acc2)
anaconda2-4.0.0/envs/web2 (created from /home/wukai/.pyenv/versions/anaconda2-4.0.0/envs/web2)
anaconda3-4.0.0 (created from /home/wukai/.pyenv/versions/anaconda3-4.0.0)
anaconda3-4.0.0/envs/acc3 (created from /home/wukai/.pyenv/versions/anaconda3-4.0.0/envs/acc3)
anaconda3-4.0.0/envs/pymotw3 (created from /home/wukai/.pyenv/versions/anaconda3-4.0.0/envs/pymotw3)
anaconda3-4.0.0/envs/web3 (created from /home/wukai/.pyenv/versions/anaconda3-4.0.0/envs/web3)
miniconda3-latest (created from /home/wukai/.pyenv/versions/miniconda3-latest)
pymotw3 (created from /home/wukai/.pyenv/versions/pymotw3)
web2 (created from /home/wukai/.pyenv/versions/web2)
web3 (created from /home/wukai/.pyenv/versions/web3)
# No test3_1 WTF?
pyenv versions
* system (set by /home/wukai/.pyenv/version)
acc2
acc3
anaconda2-4.0.0
anaconda2-4.0.0/envs/acc2
anaconda2-4.0.0/envs/web2
anaconda3-4.0.0
anaconda3-4.0.0/envs/acc3
anaconda3-4.0.0/envs/pymotw3
anaconda3-4.0.0/envs/web3
miniconda3-latest
miniconda3-latest/envs/test3_1 #here
pymotw3
test3_1
web2
web3
最但疼的是,创建出来的test3_1版本不自带conda命令了, 很蛋疼啊...
1
WinterWu 2016-06-16 21:15:50 +08:00
没遇到过哦,这个 pyenv 和 virtualenv 还是觉得挺不爽。我现在生产环境只用 virtualenv ,开发环境只用 pyenv 。混用总觉得怪怪的。
|
2
quietcoolwu OP @WinterWu 之前 pyenv-virtualenv 这个插件用的挺爽的,从它更新的 git log 来看感觉像是 conda 的锅,只有 conda 更新到 4.1.0 后会出这个问题,旧版本 conda 和 pyenv 合体没问题啊
|
3
zhy0216 2016-06-16 22:53:10 +08:00
直接用 conda 自带的虚拟环境不知道能不能解决
|
4
quietcoolwu OP @zhy0216 貌似不能额 先看看 conda 的更新日志吧
|