Python packages mess up home folder

I installed miniconda using homebrew, then installed some python packages inside a virtual environment. But after that I found out there is some hidden folders were created under my home folder like ".matplotlib". Is this normal since I thought I install the packages under "virtual environment" 😭

MacBook Air, macOS 14.4

Posted on Apr 29, 2024 2:06 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 29, 2024 3:13 AM

It's normal. When you install Python packages, a directory is created by the library to store configuration files and cache data. Even if you installed the packages in a virtual environment, these directories are created in your home directory as they pertain to user-specific data rather than the package's code itself.

6 replies
Question marked as Top-ranking reply

Apr 29, 2024 3:13 AM in response to percy42

It's normal. When you install Python packages, a directory is created by the library to store configuration files and cache data. Even if you installed the packages in a virtual environment, these directories are created in your home directory as they pertain to user-specific data rather than the package's code itself.

Apr 29, 2024 6:59 AM in response to percy42

percy42 wrote:

Thanks for your reply! I see that some of the python packages create some user configuration file in the home directory. By the way, dose you imply that the packages install in optional virtualenv package (which can be install form pip? 🧐) will not write that dot file to the home directory?

Not implied at all. Same behavior of the matplotlib package when installed in either virtual environment.



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Python packages mess up home folder

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.