Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

cannot set environmental variable in conda

I’m trying to set up an environmental variable in conda, but when I do set GIT_SSH_COMMAND="ssh -v" and then echo $GIT_SSH_COMMAND I get nothing. If I do export GIT_SSH_COMMAND="ssh -v" I get an error saying that The term 'export' is not recognized as the name of a cmdlet, function, script file, or operable program.. In other words, I can’t set environment variables in conda.

How can I solve this?
Thank you very much

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

"...as the name of a cmdlet" suggests a Powershell session.

You would need, as seen here:

$env:GIT_SSH_COMMAND='ssh -v'

Or, in a Conda session, see "Setting environment variables"

conda env config vars set GIT_SSH_COMMAND='ssh -v'
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading