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
#1
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How from sklearn.datasets import load_diabetes change to import to CSV file Anldra12 0 166 Dec-25-2021, 07:20 PM
Last Post: Anldra12
  Unable to use Pauli Matrices in QNET Package Rupayan 2 541 Sep-25-2021, 06:02 AM
Last Post: Rupayan
  Unable to import Private Repo using setup.py Bob786 1 453 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 1,084 Jul-03-2021, 10:07 AM
Last Post: Anldra12
  Installing auto-sklearn on Windows 10 Led_Zeppelin 1 1,138 Apr-15-2021, 08:02 PM
Last Post: bowlofred
  Index data must be 1-dimensional : Classifier with sklearn Salma 0 1,918 Apr-01-2021, 03:22 PM
Last Post: Salma
  Can't import package hubenhau 1 2,339 Jan-15-2021, 06:23 PM
Last Post: buran
  Installing a python package using pip anthonymoss78 0 729 Jul-14-2020, 01:52 PM
Last Post: anthonymoss78
  Unable to import my own module ThePhantom 3 1,293 May-01-2020, 01:30 AM
Last Post: menator01
  import scalalib package doesn't work manu_brighter 2 1,563 Apr-17-2020, 06:36 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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