reset password
Author Message
gchan10
Posts: 27
Posted 16:34 Mar 02, 2019 |

Hi all,

So I pip installed both toolz and pyrsistent, which both are now currently installed onto my machine. However, when I tried to import pyrsistent, it game me a ModuleNotFoundError even though the toolz import worked just fine. Is there something I'm missing?

Any help would be appreciated. Thanks in advance.

kmarlis
Posts: 35
Posted 16:47 Mar 02, 2019 |

Hey George, I’ve run into similar problems before and fixed them by doing pip3 install for the offending module. Hope this helps!

gchan10
Posts: 27
Posted 16:59 Mar 02, 2019 |

Hi Kevin, so I tried to uninstall pyrsistent first by using the pip3 uninstall command for both pyrsistent and the six module it required and then reinstalled it by using the pip3 install command you told me, but i still get the `ModuleNotFoundError: no module named 'pyrsistent'` error. I don't know what I'm missing. Thanks, though.

gchan10
Posts: 27
Posted 17:36 Mar 02, 2019 |

Update, I managed to fix it. I had to use python instead of py on the command line to run my file. Thanks for the feedback.