Home > front end >  Python: Could not install packages due to an OSError: [Errno 2] No such file or directory
Python: Could not install packages due to an OSError: [Errno 2] No such file or directory

Time:12-24

I try to use pip to install sklearn, and I receive the following error message:

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory:
 'C:\\Users\\Administrator\\AppData\\Local\\Packages\\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\\LocalCache\\local-packages\\Python310\\site-packages\\jedi\\third_party\\django-stubs\\django-stubs\\contrib\\contenttypes\\management\\commands\\remove_stale_contenttypes.pyi'

I tried to install jupyter

CodePudding user response:

Try using pip3 install sklearn, or pip install -U pip

CodePudding user response:

Try with:

pip install scikit-learn

It will work.

  • Related