当前位置:   article > 正文

关于jupyter notebook使用过程中的一些排错_warning: the script jupyter-contrib.exe is install

warning: the script jupyter-contrib.exe is installed in

关于jupyter notebook使用过程中的一些排错

1:使用jupyter notebook不能中断正在运行的程序
解决办法:打开conda Promet进入自己的环境,输入pip3 install --upgrade --force-reinstall --no-cache-dir jupyter这句话,在运行这句话的过程中可能会出现这样的报错信息。

ERROR: Cannot uninstall 'ipython-genutils'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
  • 1

此时,要寻找到ipython-5.1.0-py3.6.egg-info这个文件(中间的版本号可能不同,主要是ipython-*-*-*-***.egg-info这种格式),此文件的位置在你环境文件中,类似于D:\Anaconda\envs\keras_gpu\Lib\site-packages\ipython-*-*-*-***.egg-info,找到这个文件之后删除,再运行第一句话即可。此时还可能报错,

ERROR: Could not install packages due to an EnvironmentError: [WinError 5] 拒绝访问。: 'd:\\anaconda\\envs\\keras_gpu\\lib\\site-packages\\_cffi_backend.cp37-win_amd64.pyd'
Consider using the `--user` option or check the permissions
  • 1
  • 2

根据报错信息,此时应该运行这句pip3 install --upgrade --force-reinstall --no-cache-dir jupyter --user,之后会有一堆warning和error出现,

WARNING: The script jupyter-console.exe is installed in 'C:\Users\Admin\AppData\Roaming\Python\Python37\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.
ERROR: After October 2020 you may experience errors when installing or updating packages. This is because pip will change the way that it resolves dependency conflicts.

We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.

tensorflow 2.1.0 requires scipy==1.4.1; python_version >= "3", but you'll have scipy 1.5.2 which is incompatible.
tensorflow 2.1.0 requires tensorboard<2.2.0,>=2.1.0, but you'll have tensorboard 2.2.1 which is incompatible
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8

我选择添加了系统变量,不添加似乎也没事。到此,程序不能中断的问题解决了,但是出现的这些报错不知道怎么解决。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Cpp五条/article/detail/297749
推荐阅读
相关标签
  

闽ICP备14008679号