mnist = input_data.read_data_sets('MNIST_data', one_hot=True)報錯: HTTP Error 403: Forbidden
使用的是pycharm。
報錯資訊如圖所示:
分析:
一般來說HTTP Error 403: Forbidden是因為爬蟲被限制,解釋一下為什麼會報關於url的錯。
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets('MNIST_data', one_hot=True)
這兩句專門用於下載mnist資料,因此它確實是涉及到網址的。而且它下載了之後會在當前目錄有一個MNIST_data檔案,下載的內容就放在裡面:
解決方法:
注意一下剛剛那個報錯資訊,點選這個mniist.py檔案,這個檔案就會開啟
第32行有個SOURCE_URL:把它改為http://yann.lecun.com/exdb/mnist/
儲存之後重新執行就不會再報這個錯誤啦!
相關推薦
mnist = input_data.read_data_sets('MNIST_data', one_hot=True)報錯: HTTP Error 403: Forbidden
使用的是pycharm。 報錯資訊如圖所示: 分析: 一般來說HTTP Error 403: Forbidden是因為爬蟲被限制,解釋一下為什麼會報關於url的錯。 from tensorflow.examples.tutorials.mnist i
瀏覽器訪問IIS伺服器上面的plist檔案報錯:HTTP Error 404.3
報錯:HTTP Error 404.3 - Not FoundThe page you are requesting cannot be served because of the extension configuration. If the page is a scrip
iis 6釋出webservice服務報錯:HTTP 錯誤 403.14
iis 6釋出webservice服務HTTP 錯誤 403.14 - Forbidden Web 伺服器被配置為不列出此目錄的內容。 折騰了半天,提示裡面的解決方法是: 如果不希望啟用目錄瀏覽,請確保配置了預設文件並且該檔案存在。 使用 IIS 管理器啟用目錄瀏覽。 開啟 IIS 管理器。 在“功能”檢視
http://localhost/ 或 http://127.0.0.1/ 報錯:HTTP 404 的解決辦法
bottom modify pat tro n) 報錯 bsp 設置 cal 一些初次接觸使用 Eclipse 工具來開發 JAVA Web 工程的開發人員,可能會對 Eclipse 和 Tomcat 的綁定產生一個疑惑。 那就是 在修改了 Tom
Myeclipse啟動報錯:An error has occurred.See the log file
entry classpath ret 出現 restore div nap cati security 出現這個問題是因為斷電前myeclipse還在運行,日誌報錯如下: !ENTRY org.eclipse.osgi 4 0 2017-07-24 08:29:48.4
shell 報錯:syntax error: unexpected end of file
not app 文件格式 解決方案 編輯 window 曾經 command exp 有時執行腳本時會報錯: [[email protected] shell]# sh -x test.sh + $‘\r‘ : command not found test.s
十、cent OS開啟APR模式報錯:configure: error: Found APR 1.3.9. You need version 1.4.3 or newer installed
config 安裝目錄 prefix org col spa -a you 新版 錯誤內容顯示APR的版本過低,需要新版本 到http://apr.apache.org/download.cgi#apr1這個地址下載所需要的包apr-1.4.5.tar.gz apr-ic
memcache啟動報錯:memcached: error while loading shared libraries: libevent-XXXXX5: cannot 。。。。
share mem dev 鏈接 debug 修改文件 memcache null 鏈接地址 創建連接 ln -s /usr/lib/libevent-2.1.so.6 /usr/lib/libevent-2.1.so.6 如果還不行就下面解決 執行下面語句查看鏈接
項目中訪問controller報錯:HTTP Status 500 - Servlet.init() for servlet spring threw exception
apr ssl .get beans index p s 配置 cnblogs lis 直接訪問controller路徑http://localhost:8080/index報錯: HTTP Status 500 - Servlet.init() for servlet
laravel --報錯:Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW)
parse size font 技術分享 info error span expected 原因 報錯如下: 原因:( ) { } [ ] 不對稱,或者用錯了。 laravel --報錯:Parse error: syntax error, unexpected
Linux中mysql進入命令行報錯:MYSQL ERROR 2003 (HY000): Can't connect to MySQL server on '192.168.99.192' (111)
端口 connect 通過 l命令 linu serve nbsp linux err 場景:在Linux中安裝mysql01和mysql02,通過VIP虛出一個VIP=192.168.99.192,mysql01為主ip為192.168.99.153,mysql02為備機
pyspider報錯: HTTP 599: SSL certificate problem: self signed certificate in certificate chain解決方案
出現上述問題,可以在抓取函式的crawl 方法中加入忽略證書驗證,validate_cert=False 即:self.crawl('__START_URL__', callback=self.index_page, validate_cert=False) validate_cert
c++ include包含工程目錄下的.h檔案,報錯:fatal error C1083: 無法開啟包括檔案:“Sales_item.h”: No such file or directory
背景:刷c++primer的題目,將下載的某個標頭檔案拖拽到自己建立的工程目錄下,在自己新建的原始檔中include包含時,報無法開啟檔案 明明有檔案 為什麼說無法開啟呢 於是到本地的工程目錄中開啟一看,果然沒有這個檔案 說明通過滑鼠拖拽檔案進入到工程樹上面,檔案並沒
python中使用pip安裝報錯:Fatal error in launcher... 解決方法
python安裝了2和3版本在 cmd 中用pip報的錯誤為:Fatal error in launcher:Unable to create process using 這是因為你安裝了python3和python2在你的windows下,並且在環境變數中分別配置了pip,可是並沒有區分pip3還是p
報錯:log4j:ERROR Category option " 1 " not a decimal integer.
程式碼: package com.zml; import org.apache.log4j.Logger; public class Day01 { private static Logger logger = Logger.getLogger(Day01.class);
Hplsql報錯:...HiveSQLExpection:Error while compiling statement:No privilege 'Select' found for inputs {.....}
實踐hplsql時,遇到的問題總結一下,若有不對的地方,歡迎交流。 一、Hplsql簡介 hplsql的介紹詳見:http://lxw1234.com/archives/2015/09/492.htm 二、hpsql的配置檔案為hplsql-sit
pycharm執行selenium+webdriver(chromedriver)報錯:unknown error: chrome failed to start
首先我確定了我的chrome和chromedriver對應版本是一致的 在cmd命令模式中能開啟chrome並執行,但是在pycharm中卻不能開啟chrome,並報錯unknown error: chrome failed to start 解決方法:關閉pycharm,然後找到
【docker】docker啟動、重啟、關閉命令,附帶:docker啟動容器報錯:docker: Error response from daemon: driver failed programming external connectivity on endpoint es2-node
在關閉並放置centos 的防火牆重啟之後【操作:https://www.cnblogs.com/sxdcgaq8080/p/10032829.html】 啟動docker容器就發現開始報錯: [[email protected] elasticSearch]# docker run -d
Spring Boot報錯:Whitelabel Error Page
今天在搭建Spring Boot專案的時候,在程式碼方面沒有任何錯誤的情況下,訪問頁面報了一個這樣的錯誤,一開始很費解,最後查閱文件,發現是因為我的Application啟動類的位置放錯了,一開始是這樣的: 但是當Application啟動的時候,Spring Boot會載入啟動類所在包下
nginx啟動報錯:nginx: [error] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory) 的解決辦法
問題: 重啟虛擬機器後,再次重啟nginx會報錯: nginx: [error] open() "/var/run/nginx/nginx.pid" failed (2: No such file or directory) 問題原因: 提示資訊說明在 /var/