pvvx / THB2

Custom firmware for Tuya devices on the PHY622x2 chipset
Other
121 stars 12 forks source link

How to start #61

Open Floriszz opened 1 month ago

Floriszz commented 1 month ago

I read the readme and can't even get through the first step...I feel really stupid. I already have python on my windows pc. For some reason Github has made it difficult to download the repo, as there is now an 'Open' button for Gitpod only. Or I might have done something stupid. But the requirements.txt file has only 'pyserial' in it. Trying to install this with: pip3 install -r pyserial

C:\WINDOWS\system32>pip3 install -r  pyserial
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'pyserial'
J0k3r2k1 commented 1 month ago

click on "code" and download ZIP, unpack and copy all files to your python directory open powershell and move to your python directory type: pip3 install -r requirements.txt (this will pull+install all necessary files) go on with the other steps...

HumbleDeer commented 3 weeks ago

The -r flag for Pip is to specify a requirements file. What you're doing in this case is telling Pip to use a requirements-type file that's called pyserial in your current directory.

To install packages without a requirements file, ommit that -r flag. Get Pip help with pip -h.

HumbleDeer commented 3 weeks ago

move to your python directory

This should be

Move to inside the project directory

i.e. the pvvx/THB2 repository, either downloaded and extracted or cloned using git clone.