python - ModuleNotFoundError: No module named 'numpy.testing.nosetester' AND PermissionError: [WinError 5] Access is denied
问题描述
I am trying to use sklearn in jupyter notebook, but when I use import sklearn
(sklearn
is already installed) and/or from sklearn import linear_model
, it gives me this error:
ModuleNotFoundError: No module named 'numpy.testing.nosetester'
When I try to upgrade numpy and pip, it gives me this error:
You are using pip version 9.0.1, however version 21.1.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
When I try python -m pip install --upgrade pip
in both jupyter notebook and the command prompt, I get the following message.
PermissionError: [WinError 5] Access is denied: 'c:\\programdata\\anaconda3\\lib\\site-packages\\pip\\basecommand.py'
Any help is much appreciated.
解决方案
推荐阅读
- json - 使用 record_transformer 插件修改 fluentd json
- azure-devops - 如何在 Azure devops 系统中获得 sprint 明智的自动化测试用例?
- javascript - 排列一个表,然后是一个表 javascript jquery
- flutter - 如何在 Flutter 中混合多个渐变?
- python - 为 python 脚本设置默认解释器不起作用
- java - 奇怪的 Log.i() 行为 Android Studio
- c - 为什么文件会变成NULL?
- ios - 自定义 Firebase Crashlytics 崩溃报告
- angular - Visual Studio Code 打字稿自动导入不起作用
- r - 如何创建像这样的多暗列表 DATA<-list(list(list(),list(),list()),list(list(),list(),list()),list(list() ,列表(),列表()))?