Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 How to resolve scipy differences?
In Pycharm, I am importing "import scipy.misc" and the code that calls scipy.misc.comb(...) works fine. The scipy version in Pycharm is 0.19.1.

Now, if I run that same code on the command line with scipy 1.3.1 (current version), I get this error:

AttributeError: module 'scipy.misc' has no attribute 'comb'

I'm confused about how to resolve this error since it works in PyCharm, but not at the command line with what appears to be the latest scipy version.

Thanks in advance,

buran wrote Oct-01-2019, 01:06 PM:
Please, use proper tags when post code, traceback, output, etc.
See BBcode help for more info.

Please, post the entire traceback that you get. We need to see the whole thing. Do not just give us the last line.
Take a time to read What to include in a post
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:

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
Thanks. I also found the right library to use instead. :)

Appreciate your reply.

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Pandas and Date: problem with operator.How to resolve frame 6 1,443 May-13-2019, 05:50 PM
Last Post: frame

Forum Jump:

Users browsing this thread: 1 Guest(s)