I am trying to access a fairly simple python package via pip from here but am running into an error when I try and import. As usual, I have run pip install inflect
and have confirmed that it is installed correctly. I then try to import in Spyder via import inflect
but receive an error message stating: ModuleNotFoundError: No module named 'inflect'
I have used this package on a different PC recently without issue. However, when I try to import on a new desktop I get the error mentioned above.
when you are installing the library you can see the directory where it has been installed. Copy that dir and run the following:
import sys
sys.path.insert(0, "path/to/your/inflect")
import inflect
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.