DWQA QuestionsCategory: ServerHow to configure environment variables separately when running two similar programs on the same computer?
ccpython asked 1 month ago

My classmates and I developed the same project written in Python on windows, but because of the requirements of the project, sometimes he can only copy the code to my computer with U disk. Pychar runs his gui.py When the file path is added to pythonpath and path, it does not work. How to set environment variables?

2 Answers
Ricardo_T answered 1 month ago

Python has virtualenv, you can try PIP install
It is also suggested that git should be used for team development

ccpython replied 1 month ago

thank you very much

chenglp answered 1 month ago

When transmitting code with virtualenv, copy the env of Python

ccpython replied 1 month ago

thank you very much