[英]Python: Could not install packages due to an OSError: [Errno 2] No such file or directory
I try to use pip to install sklearn, and I receive the following error message:我尝试使用 pip 安装 sklearn,但收到以下错误消息:
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我试图安装 jupyter
Try using pip3 install sklearn
, or pip install -U pip
尝试使用
pip3 install sklearn
或pip install -U pip
Try with:尝试:
pip install scikit-learn
It will work.它会起作用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.