Temporary PYTHONPATH in Windows

后端 未结 4 2088
感情败类
感情败类 2021-01-13 04:25

How do I set, temporarily, the PYTHONPATH environment variable just before executing a Python script?

In *nix, I can do this:

$ PYTHONPATH=\'.\' pyth         


        
4条回答
  •  余生分开走
    2021-01-13 05:14

    In Windows, you can set PYTHONPATH as an environment variable, which has a GUI front end. On most versions of Windows, you can launch by right click on My Computer and right click Properties.

提交回复
热议问题