As you can see in the docs, importing comb from scipy.misc was depreciated in 1.0.0. You need to import it from scipy.special:
https://docs.scipy.org/doc/scipy-1.2.1/r.../misc.html
It was an alias so if you import from scipy.special it should work in both versions. Of course the question why you use two different versions is warnted. It looks like you use one python interpreter in pycharm and other from command line. I would advise to sort out the different python interpreters/installations you have
https://docs.scipy.org/doc/scipy-1.2.1/r.../misc.html
Quote:comb is deprecated! Importing comb from scipy.misc is deprecated in scipy 1.0.0.
It was an alias so if you import from scipy.special it should work in both versions. Of course the question why you use two different versions is warnted. It looks like you use one python interpreter in pycharm and other from command line. I would advise to sort out the different python interpreters/installations you have
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs