Python Forum
Unable to import sklearn after installing any package - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Unable to import sklearn after installing any package (/thread-35365.html)



Unable to import sklearn after installing any package - ilango - Oct-25-2021

Hi all,

We use miniconda as python package manager and install required packages using pip.
We have a Venv Py36. Recently we are facing an issue. Whenever we install any new package using pip. The new package is installed in /usr/share/miniconda2/envs/py36/lib/python3.6/site-packages/ location and access control is 750 as owner and other as root user.
Immediately after the installation of any package we can not import sklearn and getting the follow error message.
[Errno 13] Permission denied: ‘/usr/share/miniconda2/envs/py36/lib/python3.6/site-packages/PyAudio-0.2.11.dist-info’
We installed pyaudio just now.
The issue is resolved when I ran chmod and set 755 permission to the above folder
chmod 755 -R /usr/share/miniconda2/envs/py36/lib/python3.6/site-packages/PyAudio-0.2.11.dist-info

Please let me know the right way to handle this. instead of providing 755 access. I am not comfortable providing read execute access to all.