ImportError: cannot import name 'float_factorial' from 'scipy._lib._util'

"Nima Rafati" <[email protected]> Thu, 13 Jul 2023 08:36:53 -0000
Newsgroups gmane.comp.python.scientific.devel
Message-ID <[email protected]>
Dear all,

I am trying to run a jupyter notebook to analyze spatial transcriptomics data and when I want to import segmentation I receive error for scipy.lib_util:
```
Here is a chunk that I import libraries:
import scanpy as sc
import numpy as np
import matplotlib.pyplot as plt
import scipy as scp
import seaborn as sns
import pandas as pd
import urllib
import tangram as tg
import segmentation as segmentation```


**ImportError: cannot import name 'float_factorial' from 'scipy._lib._util'**. 


I googled and found only one specific answer which had recommended to edit the function 'float_factorial' Here is the link 
https://stackoverflow.com/questions/66647283/importerror-cannot-import-name-float-factorial
I edited as suggested but didn't help unfortunately :(. 

I will very appreciate if you can help to fix this issue!

Regards,
Nima
_______________________________________________
SciPy-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/scipy-dev.python.org/
Member address: [email protected]