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
  [WORKED AROUND] Problem installing elitech-datareader, 'cannot import build_py_2to3' NeilUK 4 1,561 Jul-09-2023, 10:01 AM
Last Post: NeilUK
  Is it possible to see dependencies before installing a package? quazirfan 4 1,024 Dec-06-2022, 02:50 PM
Last Post: snippsat
  How from sklearn.datasets import load_diabetes change to import to CSV file Anldra12 0 1,811 Dec-25-2021, 07:20 PM
Last Post: Anldra12
  Unable to use Pauli Matrices in QNET Package Rupayan 2 1,877 Sep-25-2021, 06:02 AM
Last Post: Rupayan
  Unable to import Private Repo using setup.py Bob786 1 1,705 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 3,063 Jul-03-2021, 10:07 AM
Last Post: Anldra12
  Installing auto-sklearn on Windows 10 Led_Zeppelin 1 2,620 Apr-15-2021, 08:02 PM
Last Post: bowlofred
  Index data must be 1-dimensional : Classifier with sklearn Salma 0 4,259 Apr-01-2021, 03:22 PM
Last Post: Salma
  Can't import package hubenhau 1 5,862 Jan-15-2021, 06:23 PM
Last Post: buran
  Installing a python package using pip anthonymoss78 0 1,774 Jul-14-2020, 01:52 PM
Last Post: anthonymoss78

Forum Jump:

User Panel Messages

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