question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

anaconda: command not found

See original GitHub issue

I am trying to use the anaconda upload command to upload my conda package to my channel. Even though I install anaconda-client, when I try to call anaconda I get command not found. A simplified yaml is below.

name: Upload Anaconda Cloud

on: workflow_dispatch
    
jobs:
  publish:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: conda-incubator/setup-miniconda@v2
        with:
         auto-activate-base: true
         activate-environment: ""
      - name: Install dependencies
        run: conda install anaconda-client 
      - name: test anaconda
        run: anaconda -t ${{ secrets.ANACONDA_TOKEN }} upload condaDist/noarch/mypackage*

Here is the error that I get.

Run anaconda upload condaDist/noarch/mypackage*
/home/runner/work/_temp/e7279193-c644-4b95-9764-e6e2c988ef20.sh: line 1: anaconda: command not found

Does anyone know why I’m not able to use anaconda-client even though it has been installed?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
nanthony21commented, Jan 18, 2021

I realized that the shell: bash -l {0} line actually worked and the error I was getting was just due to an improper call to anaconda upload.

Thanks for the help!

0reactions
nanthony21commented, Jul 11, 2021

@romainsacchi , at this point I don’t really remember. I think in my case it was something simple like the path to the file not being correct.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Conda command not found - Stack Overflow
I've installed Miniconda and have added the environment variable export PATH="/home/username/miniconda3/bin:$PATH" to my .bashrc and .bash_profile but still can ...
Read more >
How to Fix Conda command not found error in ... - MonoVM
How to fix Conda command not found error in Windows? ... Search for 'Edit the system environment variables and click on 'Environment Variables..'....
Read more >
Conda Command not Found - Linux Hint
If you face the 'conda command not found' error, the first and most common solution is to ensure you have conda installed. You...
Read more >
Troubleshooting — Anaconda documentation
If start menu shortcuts are missing, Microsoft recommends rebooting your computer or restarting Windows Explorer. If that doesn't work, clear $PYTHONPATH and re ......
Read more >
How to fix the “conda: command not found” error
The “conda: command not found” problem is prompted when the Anaconda software is not installed on the system or when the path variable...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found