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.sh: line 80: syntax error near unexpected token `(' #7373
Comments
In case it helps, as of conda 4.4 there is a new way of activating environments. Please have a look at: |
Thanks ! I tried that but I'm getting the same issue even before trying
|
Ok I found the culprit, there is an |
Going to reopen this to remind me to make sure we’re properly escaping conda with |
@kaaloo Instead of an alias, you can use a function if you need it in bashrc file.
typing anaconda, and then source activate env should work. |
@sritee that is not the way to activate conda environments. |
error info:
fix line 80:
old:
new:
test:
|
I removed the word "function" in line 5 and line 31 in all files .sh |
Hi there, thank you for your contribution to Conda! This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs. If you would like this issue to remain open please:
NOTE: If this issue was closed prematurely, please leave a comment and we will gladly reopen the issue. In case this issue was originally about a project that is covered by the Anaconda issue tracker (e.g. Anaconda, Miniconda, packages built by Anaconda, Inc. like Anaconda Navigator etc), please reopen the issue there again. Thanks! |
I've had this error occur multiple times and I'd never figured out what the proper fix is until today. Open your I'm not sure if this will work for everyone, but it worked for me strangely enough. |
I'm submitting a...
Current Behavior
source activate <environment>
produces a syntax errorSteps to Reproduce
Expected Behavior
The specified environment should be activated and the shell prompt should be updated to reflect the name of the environment .
Environment Information
`conda info`
`conda config --show-sources`
(No output is produced)
`conda list --show-channel-urls`
The text was updated successfully, but these errors were encountered: