Giter VIP home page Giter VIP logo

Comments (7)

arleigh418 avatar arleigh418 commented on June 15, 2024

hi 您好,
針對第一個問題, 我可能六日有時間再去看一,不過書中的程式的確有可能跟github上面不同, 因為書上的是過程, 這裡放的是最終的版本~不過或許您說的不同是對的,我還要再去看一下,感謝提出.

第二點的話,我想應該是您的程式位置在c/user裡面的深處吧,通常是建議程式碼不要放得那麼深, 一來不好控管, 二來是容易有權限問,尤其是擺在使用者裡面. 像我個人在開發基本上都是放D:/ or C:/這一類單純的位址進行開發.要執行user裡面的東西,基本上應該是要admin沒錯.

from python-and-taiwan-stock-market.

KKalleKK avatar KKalleKK commented on June 15, 2024

經過調整路徑精簡後,變成找不到檔案或仍有0*1。可能是我不知道該如何設定電腦的環境變數路徑。我應該加入哪幾個路徑呢?
image
image
image

from python-and-taiwan-stock-market.

arleigh418 avatar arleigh418 commented on June 15, 2024

Hi 您好,
在排程那張圖,程式與指令碼中,放的應不是spyder.exe,應是虛擬環境中的python.exe.

from python-and-taiwan-stock-market.

KKalleKK avatar KKalleKK commented on June 15, 2024

我把它更改到python.exe 的檔案了,結果仍舊。還會哪裡可能出錯呢?
image
image
image
image
image
image

from python-and-taiwan-stock-market.

arleigh418 avatar arleigh418 commented on June 15, 2024

為追蹤問題,我建議進行以下測試:

  1. 確保排程有勾起以最高權限執行
  2. 使用cmd執行這一只程式看看是不是work,如果不work,問題就不再排程器身上.
  3. 如果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.

KKalleKK avatar KKalleKK commented on June 15, 2024

剛剛試了一下,1、2、3步驟都是可以的。會不會是電腦甚麼權限需要特別開啟的嗎?雖然我使用的是管理員帳號。

from python-and-taiwan-stock-market.

arleigh418 avatar arleigh418 commented on June 15, 2024

嘗試在別的地方建置虛擬環境試試看,例如在D:/TEST裡面建置虛擬環境,並用D:/TEST裡面的虛擬環境去執行,如果可以過,那應就是你的系統角色沒有深入c:/users的權限,c:/users其實是一個需要高權限的地方,並不是很建議把程式放在那哩,除非您的電腦乾乾淨淨只有一個最高權限使用者。

from python-and-taiwan-stock-market.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.