简体   繁体   English

Python:由于 OSError 无法安装包:[Errno 2] 没有这样的文件或目录

[英]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 sklearnpip install -U pip

Try with:尝试:

pip install scikit-learn

It will work.它会起作用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Python:由于 OSError 无法安装软件包:[Errno 2] 没有这样的文件或目录 - Python: Could not install packages due to an OSError: [Errno 2] No such file or directory Python Pandas “错误:由于 OSError 无法安装软件包:没有这样的文件或目录:” - Python Pandas “Error: Could not install packages due to an OSError: No such file or directory:” 错误:由于 OSError 无法安装软件包:[Errno 39] 目录不为空 - ERROR: Could not install packages due to an OSError: [Errno 39] Directory not empty 如何安装 requirements.txt pip 错误->由于 OSError 无法安装软件包:[Errno 2] 没有这样的文件或目录 - How to install requirements.txt pip error ->Could not install packages due to an OSError: [Errno 2] No such file or directory 由于 OSError 无法安装软件包:[WinError 2] 没有这样的文件或目录 - Could not install packages due to an OSError: [WinError 2] No such file or directory Python Alpine 映像中的 pip 升级:错误:由于 OSError 无法安装软件包:[Errno 39] 目录不为空:'urllib3' - pip upgrading within the Python Alpine image: ERROR: Could not install packages due to an OSError: [Errno 39] Directory not empty: 'urllib3' 由于环境错误,无法安装软件包:[Errno 2] 没有此类文件或目录 - Could not install packages due to an EnvironmentError: [Errno 2] No Such file or directory 由于环境错误无法安装包:[Errno 2] 没有这样的文件或目录 \\METADATA - Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory \\METADATA 由于环境错误而无法安装软件包:[Errno 2]没有这样的文件或目录:… - Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: … 错误:由于环境错误,无法安装软件包:[Errno 2] 没有这样的文件或目录: - ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory:
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM