Comments (7)
hi 您好,
針對第一個問題, 我可能六日有時間再去看一,不過書中的程式的確有可能跟github上面不同, 因為書上的是過程, 這裡放的是最終的版本~不過或許您說的不同是對的,我還要再去看一下,感謝提出.
第二點的話,我想應該是您的程式位置在c/user裡面的深處吧,通常是建議程式碼不要放得那麼深, 一來不好控管, 二來是容易有權限問,尤其是擺在使用者裡面. 像我個人在開發基本上都是放D:/ or C:/這一類單純的位址進行開發.要執行user裡面的東西,基本上應該是要admin沒錯.
from python-and-taiwan-stock-market.
經過調整路徑精簡後,變成找不到檔案或仍有0*1。可能是我不知道該如何設定電腦的環境變數路徑。我應該加入哪幾個路徑呢?
from python-and-taiwan-stock-market.
Hi 您好,
在排程那張圖,程式與指令碼中,放的應不是spyder.exe,應是虛擬環境中的python.exe.
from python-and-taiwan-stock-market.
我把它更改到python.exe 的檔案了,結果仍舊。還會哪裡可能出錯呢?
from python-and-taiwan-stock-market.
為追蹤問題,我建議進行以下測試:
- 確保排程有勾起以最高權限執行
- 使用cmd執行這一只程式看看是不是work,如果不work,問題就不再排程器身上.
- 如果cmd執行python work的話,嘗試使用您路徑的python執行看看該檔案。
作法: 以您的例子,打開cmd並將路徑指向D:\trade1, 然後下語法:c:\Users\xxx(您的user名稱)\acona\envs\MABMPY38\python.exe 1_buy_follow_corp.py,觀察看看什麼反應
from python-and-taiwan-stock-market.
剛剛試了一下,1、2、3步驟都是可以的。會不會是電腦甚麼權限需要特別開啟的嗎?雖然我使用的是管理員帳號。
from python-and-taiwan-stock-market.
嘗試在別的地方建置虛擬環境試試看,例如在D:/TEST裡面建置虛擬環境,並用D:/TEST裡面的虛擬環境去執行,如果可以過,那應就是你的系統角色沒有深入c:/users的權限,c:/users其實是一個需要高權限的地方,並不是很建議把程式放在那哩,除非您的電腦乾乾淨淨只有一個最高權限使用者。
from python-and-taiwan-stock-market.
Related Issues (20)
- 遇到 OSError? HOT 8
- Google 不支援低安全模式 HOT 1
- 爬蟲遇到的問題 HOT 3
- stock_list.py執行錯誤 HOT 8
- 請問關於自動寄信 HOT 3
- about pandas rolling HOT 2
- 關於yahoo_new小程式 HOT 2
- 關於matplotlib HOT 7
- backtrader問題 HOT 2
- 關於 mpl_finance失效的問題 HOT 2
- 有關更多操作自動化的問題 HOT 2
- 關於PYTHON 金融市場賺大錢聖經書中 HOT 7
- 關於AES_Encryption等第三章問題 HOT 50
- 第1-4虛擬環境 HOT 7
- 第二章27頁 HOT 11
- python聖經第三章3.2小節的代碼問題 HOT 1
- pyfolio 問題 HOT 1
- 第三章'Crypto'的問題 HOT 1
- 第二章 2-21 輸出的中文變成亂碼 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-and-taiwan-stock-market.