赞
踩
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.
此时,要寻找到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
根据报错信息,此时应该运行这句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
我选择添加了系统变量,不添加似乎也没事。到此,程序不能中断的问题解决了,但是出现的这些报错不知道怎么解决。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。