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

Anaconda – installed package to base virtual env but can't run in Spyder, pycharm or Jupiter notebook

I’ve opened a new terminal and ran

conda activate base
pip install sailthru-client

Then I opened Spyder tried importing:

 from sailthru.sailthru_client import SailthruClient

but see:

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

  File "/Users/me/sailthru.py", line 9, in <module>
    from sailthru.sailthru_client import SailthruClient

ModuleNotFoundError: No module named 'sailthru.sailthru_client'; 'sailthru' is not a package

In my terminal if I run echo $PATH I see:

/opt/anaconda3/bin:/Applications/SnowSQL.app/Contents/MacOS:/opt/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin

and also in my terminal if I run:

python3

from sailthru.sailthru_client import SailthruClient

I see:

Traceback (most recent call last): File "", line 1, in
File "/Users/me/sailthru.py", line 3, in
from sailthru.sailthru_client import SailthruClient ModuleNotFoundError: No module named ‘sailthru.sailthru_client’;
‘sailthru’ is not a package

>Solution :

File "/Users/me/sailthru.py" <- you have shadowed the module sailthru by creating a python script with the same name. Rename that and try again

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