-
-
Notifications
You must be signed in to change notification settings - Fork 421
Can not access Anaconda/Miniconda environment as virtualenv #178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@yyuu The same problem happened to me, but it's still OK when I installed Anaconda or Miniconda with older conda version(e.g. 4.0.5), and using |
I couldn't reproduce the issue. It's all working for me even with conda 4.1.4.
|
For me, on conda 4.1.2 I had to run |
This issue is resurfacing with conda 4.4.1
Also,
Update: Reverting back to conda 4.3.23 resolved the issue. Seems to be caused by an update in conda 4.4 that changed how conda manages environments. |
I too am having the same issue describe by @motivic. Reverting back to 4.3.27 fixes the issue for me, was running |
@TurboTim 's suggestion still works with conda 4.4.* though. |
Confirming that I had the described issue with conda-4.4.7, which disappeared after downgrading conda to 4.3.30 |
I managed to make it work after downgrading to miniconda3-4.3.27 and downgrading conda within miniconda to the same version. Finally, I made sure to create a new conda environment using |
Facing this same issue here with conda 4.4.10. For me there does not appear to be an |
conda 4.x switched to using |
Thanks, the comment by @willprice helps to at least enable the environments with |
I'm having the exact same issue. @yyuu Are there plans to fix this for versions of conda > 4.4.x? |
Yep, Still a big issue |
Although the method by @willprice didn't work, the one above by @TurboTim works
|
Creating by hand the symbolic links within the environment bin directory to the E.g.,
Edit This work-around is no longer necessary after #290. |
Running into this issue as well, though I'm using fish. For the fish shell, you have to either symlink or source |
Even with #251 merged I'm still having this issue. I did pyenv update
pyenv uninstall miniconda2-latest
pyenv uninstall miniconda3-latest Then in a new terminal pyenv install miniconda2-latest
pyenv virtualenv miniconda2-latest my-env
pyenv activate my-env and got When uninstalling |
#251 fixed activating an environment via conda:
But I agree that doing this via pyenv-virtualenv should also work. (Though the above workflow is sufficient for me so I probably won't put in a PR). |
The solution provided by @taschini fixes the problem and you can directly @taeke: |
@taschini 's answer is a workaround, not a solution. This is something |
@clbarnes I agree that pyenv should provide a built-in solution for this and this thread should remain open to continue tracking the issue. |
Just to confirm to anyone visiting this thread. @taschini's solution:
It seems that both I created a pyenv-virtualenv hook for this:
After the hook is installed:
|
fix my problem! |
I'm having the same issue. The hook doesn't work on my linux machine. |
Did linking work? Or is just the hook? I've found the hooks a bit tricky to program. |
Try downgrade miniconda to version-4.3.30: pyenv activate miniconda3-latest
conda install conda=4.3.30 You can find it from #246. |
#290 Solved my problem. |
I got the same problem with you. I just confused why I can't activate a miniconda-virtualenv by pyenv activate.I hava to use conda activate.I found #290 It doesn't solve my problem. |
I'm using pyenv 2.0.0 on macOS 10.14.6. |
I'm showing you the steps I use to create a virtualenv based on miniconda. Finally you will see that the virtualenv was created but I can't access to it.
1.0. Check my initial pyenv versions:
$ pyenv versions * system (set by /home/oscar/.python-version) 2.7.9 3.5.1
1.1 Install miniconda:
$ pyenv install miniconda3-4.0.5 $ pyenv versions * system (set by /home/oscar/.python-version) 2.7.9 3.5.1 miniconda3-4.0.5
1.2. Create the venvtest virtualenv based on miniconda:
$ pyenv virtualenv miniconda3-4.0.5 venvtest $ pyenv versions * system (set by /home/oscar/.python-version) 2.7.9 3.5.1 miniconda3-4.0.5 miniconda3-4.0.5/envs/venvtest venvtest
When I want to check if the virtualenv was created, It doesn't show it. So I can't no access to it 😢
Please, I hope you can help me.
The text was updated successfully, but these errors were encountered: