I am a trader, I want to use the XTB API to access the account,T try to learn Python I found XTBApi I install it Windows (python3 -m venv env) but when I enter the command (. \ venv \ Scripts \ activate) it doesn't work: The specified path could not be found. What do I have to do? Thanks
How can i convert linux script to windows script :
git clone [email protected]:federico123579/XTBApi.git cd XTBApi/ python3 -m venv env . env/bin/activate pip install .
CodePudding user response:
From what I know of venv, activate is found in bin, try
venv/bin/activate
CodePudding user response:
You've mentioned in the comment XTBApi\env\Scripts\activate.bat
being present.
Execute that file because that's written in Windows' scripting language (Batch) instead of Linux/UNIX's scripting language (Bash). Those aren't compatible, nor have the same syntax.
XTBApi\env\Scripts\activate
-> Bash (for msys2 or similar things that have Bash interpreter)XTBApi\env\Scripts\activate.bat
-> Batch (forcmd.exe
)
There should also be a .ps1
file for Powershell, if you are using it.