Python Forum
Unable to import sklearn after installing any package
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to import sklearn after installing any package
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.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is it possible to see dependencies before installing a package? quazirfan 4 280 Dec-06-2022, 02:50 PM
Last Post: snippsat
  How from sklearn.datasets import load_diabetes change to import to CSV file Anldra12 0 934 Dec-25-2021, 07:20 PM
Last Post: Anldra12
  Unable to use Pauli Matrices in QNET Package Rupayan 2 1,284 Sep-25-2021, 06:02 AM
Last Post: Rupayan
  Unable to import Private Repo using Bob786 1 1,099 Sep-02-2021, 04:19 PM
Last Post: snippsat
  How to test and import a model form computer to test accuracy using Sklearn library Anldra12 6 2,118 Jul-03-2021, 10:07 AM
Last Post: Anldra12
  Installing auto-sklearn on Windows 10 Led_Zeppelin 1 1,781 Apr-15-2021, 08:02 PM
Last Post: bowlofred
  Index data must be 1-dimensional : Classifier with sklearn Salma 0 3,464 Apr-01-2021, 03:22 PM
Last Post: Salma
  Can't import package hubenhau 1 4,096 Jan-15-2021, 06:23 PM
Last Post: buran
  Installing a python package using pip anthonymoss78 0 1,252 Jul-14-2020, 01:52 PM
Last Post: anthonymoss78
  Unable to import my own module ThePhantom 3 1,962 May-01-2020, 01:30 AM
Last Post: menator01

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020