dronecrew / px4tools

PX4 flight analysis tools.
BSD 3-Clause "New" or "Revised" License
84 stars 48 forks source link

. conda_env doesn't run #25

Open neom89 opened 6 years ago

neom89 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

It helped a lot. Thanks!