0

I am trying to set variables and then run a python program after activating the virtual environment. But only the first command below runs.

C:\Windows\system32\cmd.exe /k "C:\Venv\Scripts\activate.bat" && set http_proxy=<proxyserver1>:80 && set https_proxy=<proxyserver12>:80 && py start.py

So basically I want the following commands to work in succession activate the virtual environment - Works Set the 2 proxy variables - Doesnt work Run the start python program - Doesn't work

1 Answer 1

1

There are several examples of this already on the site. A quick search would have shown you how to do this.

CALL "C:\Venv\Scripts\activate.bat"
set "http_proxy=<proxyserver1>:80"
set "https_proxy=<proxyserver12>:80"
py start.py
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.