Skip to content
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

. conda_env doesn't run #25

Open
neom89 opened this issue Jan 2, 2018 · 2 comments
Open

. conda_env doesn't run #25

neom89 opened this issue Jan 2, 2018 · 2 comments

Comments

@neom89
Copy link

neom89 commented Jan 2, 2018

I installed anaconda from the link given in the installation instructions. I follow the steps to set the path but when I run . conda_env, I get the following error

-bash: conda_env: No such file or directory

I searched in the /anaconda3/bin/ directory and found that there is no such file. I found conda-env file so I ran . conda-env but I get the following error:

-bash: import: command not found
-bash: import: command not found
from: can't read /var/mail/conda_env.cli.main
-bash: /anaconda3/bin/conda-env: line 10: syntax error near unexpected token (' -bash: /anaconda3/bin/conda-env: line 10: sys.argv[0] = re.sub(r'(-script.pyw?|.exe)?$', '', sys.argv[0])'

Can anyone help me with this?

@mzahana
Copy link

mzahana commented Jan 2, 2018

You need to create the conda_env file. For example, create it in ~/bin folder.

cd ~
mkdir bin
cd bin

create the conda_env file

nano conda_env

put the following lines inside it and save it. You can save it by CTRL+X, then hit Y button

#!/bin/bash
export PATH=$HOME/anaconda3/bin:$PATH

now you can source that file using

. ~/bin/conda_env

Now you can use conda

Hope this helps.

@neom89
Copy link
Author

neom89 commented Jan 3, 2018

It helped a lot. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants