Depth study TensorFlow --- I stepped pit (error summary) The second

When the depth of learning TensorFlow Object Detection API to train their own model - I stepped on a pit (error summary) The second

##报错一:如果想打开jupyter notebook,当在命令行的…\models-master\research\object_detection路径输入jupyter notebook发现报错“socket.gaierror: [Errno 10106] getaddrinfo failed,”无法打开jupyter notebook(如下图所示)

Here Insert Picture DescriptionSolution: When installing anaconda, jupyter already installed by default, the environment of your installation is the default setting, when we built a new environment, jupyter use environment or in the original default environment, so we need new environment reinstall jupyter notebook

其他收获:
  ## 报错二:关于LabelImg报错,打不开图像文件问题

Here Insert Picture DescriptionSolution: LabelImg does not recognize the Chinese path, the path where the picture was all Chinese to English path

## sentence plays a connecting role, pay attention to look at:
the above part of the original, the following section is a reference to others , (just to see the next convenient point, no other intention, if the next time you see some attach the corresponding article , blog and other links, thank you bear with me)

jupyter notebook flash back an error solutions
jupyter notebook flash back error solutions

First, open the jupyter notebook
there are many ways to open, you can directly point anaconda inside jupyter notebook shortcut icon to open, you can enter jupyter notebook open anaconda prompt which, under normal circumstances can be opened directly encountered an error we should look at anaconda prompt enter the wrong information jupyter notebook inside view output.

##错误一:OSError: [Errno 99] Cannot assign requested address

Solution: Find your jupyter_notebook_config.py file (usually enter jupyter notebook --generate-config command which will come out in the anaconda prompt path), find the following line after the open:

c.NotebookApp.ip = 'localhost’
改为c.NotebookApp.ip = ‘*’
意思是所有的ip都允许连接

##错误二:无法打开浏览器

解决方案: 打开jupyter_notebook_config.py,在文件最后添加以下代码

#c.NotebookApp.browser = ‘’
import webbrowser
webbrowser.register(‘chrome’,None,webbrowser.GenericBrowser(u’C:\ProgramFiles(x86)\Google\Chrome\Application\chrome.exe’))
c.NotebookApp.browser = 'chrome’

其中C:\Program Files (x86)\Google\Chrome\Application\chrome.exe,这是你想要使用的浏览器路径,可通过右键点击浏览器快捷方式查看属性得到,当然你也可以用其他的浏览器,比如firefox,修改完成后,再次打开Jupyter Notebook,就可以打开浏览器编辑窗口。

##错误三:防火墙不允许Python通过

解决方案: 在你的控制面板里面找到防火墙,允许Python和相关程序通过就好,也可以每次打开notebook前关闭再打开防火墙。

##错误四:缺少包或者文件

ModuleNotFoundError: No module named ‘yy’
解决方案:
先pip uninstall yy
再 pip install yy 就是一个卸载重装的过程
或者有的是缺少文件,你就要到提示错误的文件的路径里把缺少的这个文件加上,具体文件内容的话百度就好。

##错误五:socket.gaierror: [Errno 10106] getaddrinfo failed

Solution: This is really bothering me a lot of issues of the day, and later found because winsock damaged, use the command in the anaconda prompt in
netsh winsock reset
then reboot to fix

Continue to learn, continue to sum up, move on!

Guess you like

Origin blog.csdn.net/qq_41570307/article/details/91893306