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.

ModuleNotFoundError: No module named 'conda'

See original GitHub issue

I’ve installed conda-press on two different (Linux) systems (conda env with python 3.7, pip installed xonsh, ruamel.yaml and lazyasd). On both systems I cannot run conda press because it cannot import conda.api. Probably something to do with premissions in my conda envs. Or is there a package that provides conda.api? pip install conda breaks my conda install 😦

Linux:

[tests (master)]: python test_condatools.py
Traceback (most recent call last):
  File "test_condatools.py", line 10, in <module>
    from conda_press.condatools import SYSTEM, SO_EXT
  File "/home/tom/conda-press/conda_press/condatools.xsh", line 18, in <module>
    from conda.api import SubdirData
ModuleNotFoundError: No module named 'conda'

Windows:

(conda_press) D:\github\conda-press\tests>python test_condatools.py
Traceback (most recent call last):
  File "test_condatools.py", line 10, in <module>
    from conda_press.condatools import SYSTEM, SO_EXT
  File "d:\Miniconda3\envs\conda_press\lib\site-packages\conda_press\condatools.xsh", line 18, in <module>
    from conda.api import SubdirData
ModuleNotFoundError: No module named 'conda'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
scopatzcommented, May 8, 2019

Recent versions of conda provide conda.api. What version are you on?

0reactions
scopatzcommented, May 14, 2019

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

from conda.cli import main ModuleNotFoundError: No module ...
This is a bug in the conda solver. When conda switched out the python version to comply with your request to install imbalanced-learn...
Read more >
python - After Anaconda installation, conda command fails ...
If anaconda was installed by the root user, a permissions issue could produce the ImportError: No module named 'conda.cli' error. Something like this....
Read more >
Modulenotfounderror: no module named conda : Get Solution
modulenotfounderror: no module named conda error if Anaconda Environment is either not properly installed or underline python is incompatible.
Read more >
Modulenotfounderror: no module named conda ( Solved )
The modulenotfounderror: no module named conda error can occur due to many reasons. The most common reason is that the conda module is...
Read more >
ModuleNotFoundError: No module named 'conda' - Super User
conda is a Python script which tries to import stuff from the conda module without success. Either remove conda from /usr/bin/ or make...
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