赞
踩
pip安装jupyterlab:pip install --user jupyterlab
,出现警告:which is not on PATH
WARNING: The script jsonschema.exe is installed in 'C:\Users\huipu\AppData\Roaming\Python\Python39\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
警告的含义是:
脚本jsonschema.exe安装在’C: Users\huipu\AppData\Roaming\Python\Python39\Scripts’中,但是不在PATH中。
考虑将此目录添加到PATH中,或者,如果您希望废止此警告,可以使用 --no-warn-script-location
。
所以我们需要将该路径(‘C: Users\huipu\AppData\Roaming\Python\Python39\Scripts’)加入环境变量:
关掉之前的命令行,重新cmd启动一个新的界面,再运行命令pip install --user jupyterlab
,发现警告消失:
为什么要重新启动cmd?
因为原cmd用的还是旧的环境变量,重新启动cmd使得我们更新后的环境变量起作用。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。