
[英]Execute python at visual code but fail (error message: python path configuration…)
[英]Jupyter 'Fail to get yarn configuration' error
win10, anaconda 在 windows 更新后可能有些东西坏了:
(tf_2_gpu) C:\Users\user1>jupyter notebook --debug
[D 13:16:42.586 NotebookApp] Searching ['C:\\Users\\user1', 'C:\\Users\\user1\\.jupyter', 'c:\\users\\user1\\.conda\\envs\\tf_2_gpu\\etc\\jupyter', 'C:\\ProgramData\\jupyter'] for config files
[D 13:16:42.587 NotebookApp] Looking for jupyter_config in C:\ProgramData\jupyter
[D 13:16:42.588 NotebookApp] Looking for jupyter_config in c:\users\user1\.conda\envs\tf_2_gpu\etc\jupyter
[D 13:16:42.588 NotebookApp] Looking for jupyter_config in C:\Users\user1\.jupyter
[D 13:16:42.595 NotebookApp] Looking for jupyter_config in C:\Users\user1
[D 13:16:42.597 NotebookApp] Looking for jupyter_notebook_config in C:\ProgramData\jupyter
[D 13:16:42.597 NotebookApp] Looking for jupyter_notebook_config in c:\users\user1\.conda\envs\tf_2_gpu\etc\jupyter
[D 13:16:42.598 NotebookApp] Looking for jupyter_notebook_config in C:\Users\user1\.jupyter
[D 13:16:42.600 NotebookApp] Loaded config file: C:\Users\user1\.jupyter\jupyter_notebook_config.py
[D 13:16:42.600 NotebookApp] Loaded config file: C:\Users\user1\.jupyter\jupyter_notebook_config.json
[D 13:16:42.601 NotebookApp] Looking for jupyter_notebook_config in C:\Users\user1
[D 13:16:42.603 NotebookApp] Ignoring min_open_files_limit because the limit cannot be adjusted (for example, on Windows)
[D 13:16:42.612 NotebookApp] Paths used for configuration of jupyter_notebook_config:
C:\ProgramData\jupyter\jupyter_notebook_config.json
[D 13:16:42.613 NotebookApp] Paths used for configuration of jupyter_notebook_config:
c:\users\user1\.conda\envs\tf_2_gpu\etc\jupyter\jupyter_notebook_config.d\jupyterlab.json
c:\users\user1\.conda\envs\tf_2_gpu\etc\jupyter\jupyter_notebook_config.json
[D 13:16:42.614 NotebookApp] Paths used for configuration of jupyter_notebook_config:
C:\Users\user1\.jupyter\jupyter_notebook_config.json
Fail to get yarn configuration. {"type":"warning","data":"package.json: No license field"}
{"type":"error","data":"An unexpected error occurred: \"The \\\"path\\\" argument must be of type string. Received [Object: null prototype]\"."}
{"type":"info","data":"If you think this is a bug, please open a bug report with the information provided in \"c:\\\\users\\\\user1\\\\yarn-error.log\"."}
{"type":"info","data":"Visit https://yarnpkg.com/en/docs/cli/config for documentation about this command."}
[I 13:16:43.223 NotebookApp] JupyterLab extension loaded from c:\users\user1\.conda\envs\tf_2_gpu\lib\site-packages\jupyterlab
[I 13:16:43.224 NotebookApp] JupyterLab application directory is c:\users\user1\.conda\envs\tf_2_gpu\share\jupyter\lab
[I 13:16:43.234 NotebookApp] Serving notebooks from local directory: C:\Users\user1
[I 13:16:43.234 NotebookApp] Jupyter Notebook 6.2.0 is running at:
[I 13:16:43.234 NotebookApp] http://localhost:8888/
[I 13:16:43.235 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 13:16:44.680 NotebookApp] 302 GET /tree (::1) 1.000000ms
[D 13:16:44.686 NotebookApp] Using contents: services/contents
[D 13:16:44.709 NotebookApp] Path base/images/favicon.ico served from c:\users\user1\.conda\envs\tf_2_gpu\lib\site-packages\notebook\static\base\images\favicon.ico
[D 13:16:44.710 NotebookApp] Path components/jquery-ui/themes/smoothness/jquery-ui.min.css served from c:\users\user1\.conda\envs\tf_2_gpu\lib\site-packages\notebook\static\components\jquery-ui\themes\smoothness\jquery-ui.min.css
[D 13:16:44.711 NotebookApp] Path components/jquery-typeahead/dist/jquery.typeahead.min.css served from c:\users\user1\.conda\envs\tf_2_gpu\lib\site-packages\notebook\static\components\jquery-typeahead\dist\jquery.typeahead.min.css
[D 13:16:44.711 NotebookApp] Path style/style.min.css served from c:\users\user1\.conda\envs\tf_2_gpu\lib\site-packages\notebook\static\style\style.min.css
[D 13:16:44.713 NotebookApp] Path auth/css/override.css served from c:\users\user1\.conda\envs\tf_2_gpu\lib\site-packages\notebook\static\auth\css\override.css
[D 13:16:44.721 NotebookApp] Path components/es6-promise/promise.min.js served from c:\users\user1\.conda\envs\tf_2_gpu\lib\site-packages\notebook\static\components\es6-promise\promise.min.js
[D 13:16:44.722 NotebookApp] Path components/react/react.production.min.js served from c:\users\user1\.conda\envs\tf_2_gpu\lib\site-packages\notebook\static\components\react\react.production.min.js
[D 13:16:44.722 NotebookApp] Path components/react/react-dom.production.min.js served from c:\users\user1\.conda\envs\tf_2_gpu\lib\site-packages\notebook\static\components\react\react-dom.production.min.js
[D 13:16:44.723 NotebookApp] Path components/create-react-class/index.js served from c:\users\user1\.conda\envs\tf_2_gpu\lib\site-packages\notebook\static\components\create-react-class\index.js
[D 13:16:44.723 NotebookApp] Path components/requirejs/require.js served from c:\users\user1\.conda\envs\tf_2_gpu\lib\site-packages\notebook\static\components\requirejs\require.js
[D 13:16:44.724 NotebookApp] Path base/images/logo.png served from c:\users\user1\.conda\envs\tf_2_gpu\lib\site-packages\notebook\static\base\images\logo.png
[D 13:16:44.724 NotebookApp] 200 GET /login?next=%2Ftree (::1) 40.000000ms
[D 13:16:44.771 NotebookApp] Path custom.css served from c:\users\user1\.conda\envs\tf_2_gpu\lib\site-packages\notebook\static\custom\custom.css
[D 13:16:44.772 NotebookApp] 304 GET /custom/custom.css (::1) 2.000000ms
[D 13:16:44.851 NotebookApp] Path auth\js\main.min.js served from c:\users\user1\.conda\envs\tf_2_gpu\lib\site-packages\notebook\static\auth\js\main.min.js
[D 13:16:44.852 NotebookApp] 200 GET /static/auth/js/main.min.js?v=20210217131642 (::1) 2.000000ms
conda info
给出:
active environment : tf_2_gpu
active env location : C:\Users\laptop\.conda\envs\tf_2_gpu
shell level : 3
user config file : C:\Users\laptop\.condarc
populated config files : C:\Users\laptop\.condarc
conda version : 4.9.2
conda-build version : 3.21.4
python version : 3.8.5.final.0
virtual packages : __cuda=11.1=0
__win=0=0
__archspec=1=x86_64
base environment : C:\Users\laptop\anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
https://conda.anaconda.org/conda-forge/win-64
https://conda.anaconda.org/conda-forge/noarch
package cache : C:\Users\laptop\anaconda3\pkgs
C:\Users\laptop\.conda\pkgs
C:\Users\laptop\AppData\Local\conda\conda\pkgs
envs directories : C:\Users\laptop\anaconda3\envs
C:\Users\laptop\.conda\envs
C:\Users\laptop\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.9.2 requests/2.24.0 CPython/3.8.5 Windows/10 Windows/10.0.19041
administrator : False
netrc file : None
offline mode : False
我已经搜索了这个特定的错误('jupyter' + 'Fail to get yarn configuration'),但是除了一些我不使用的docker
问题之外,什么都没有。 重新安装notebook
没有帮助。 有没有我可以遵循的路径来解决这个问题?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.