简体   繁体   中英

Need to downgrade version of pandas but I'm getting a “ModuleNotFoundError” error

The error I'm receiving is

ModuleNotFoundError: No module named 'pandas.core.internals.managers'; 
'pandas.core.internals' is not a package

I am trying to downgrade my pandas version to version 0.22.0 after having a newer version installed previously. I read that it is an issue with the pickle file, but I'm not sure what this means. How can I update my pickle file so that I can use pandas 0.22.0 after having a newer version installed previously? I need to downgrade so I can assign multiple axes to an axis.

Thanks!

Try virtualenv .

What is a virtualenv, and why should I use one?

Virtualenv is a an isolated python environment you can use for your projects. That way, you can have several versions of whatever packages you want installed.

Install virtualenv with pip install virtualenv

Now go to your project directory and run virtualenv venv . This creates a folder called venv, which contains an isolated python environment. You can activate it by running source ./venv/bin/activate

Now, whatever packages you install will be installed to this virtualenv rather than your original python install.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM