Re: How to set environmental variables for Python

2022-01-17 Thread Cameron Simpson
On 17Jan2022 11:36, Shaozhong SHI wrote: >Set Operation System but not disturbing existing setting. Only to add at >the command line. If you mean: "set on the command line so that I run some script using Python 3.6.1", usually you would just invoke the specific Python 3.6.1 executable. You ca

Re: How to set environmental variables for Python

2022-01-17 Thread Shaozhong SHI
gt; > How do I set environmental variables for Python 3.6.1 to work? > > > Set from Python, or set in the OpSys? > > https://docs.python.org/3/library/os.html?highlight=environment%20variable > > MS-Win: https://docs.python.org/3/using/windows.html#setting-envvars > -- > Regar

Re: How to set environmental variables for Python

2022-01-17 Thread dn via Python-list
On 17/01/2022 22.31, Shaozhong SHI wrote: > I got quite a few version of Python on my machine. > > How do I set environmental variables for Python 3.6.1 to work? Set from Python, or set in the OpSys? https://docs.python.org/3/library/os.html?highlight=environment%20variable MS-W

How to set environmental variables for Python

2022-01-17 Thread Shaozhong SHI
I got quite a few version of Python on my machine. How do I set environmental variables for Python 3.6.1 to work? Regards, David -- https://mail.python.org/mailman/listinfo/python-list

Re: Deletion of Environmental Variables

2019-01-06 Thread Paul Moore
On Mon, 7 Jan 2019 at 06:37, Terry Reedy wrote: > The pydev recommended way to run pip on windows is > > py -x.y pip > as this installs the package requested into the x.y site-packages > directory. py -3.7 -m pip ... Note the extra -m). Paul -- https://mail.python.org/mailman/listinfo/python

Re: Deletion of Environmental Variables

2019-01-06 Thread Terry Reedy
On 1/6/2019 9:56 PM, Logan Vogelsong wrote: I planned on using python to simulate different cipher to challenge myself, but I kinda deleted my environmental variables to python. I run Windows 10 and wanted to get NumPy and MatPlotLib modules imported to python. Basically, I downloaded python

Deletion of Environmental Variables

2019-01-06 Thread Logan Vogelsong
Hello- I think I subscribed now. I planned on using python to simulate different cipher to challenge myself, but I kinda deleted my environmental variables to python. I run Windows 10 and wanted to get NumPy and MatPlotLib modules imported to python. Basically, I downloaded python 3.7.1

Re: Environmental Variables

2006-03-13 Thread Diez B. Roggisch
Dennis Lee Bieber wrote: > The Amiga did have a means for such... It differentiated between > local and global environment variables. Locals were kept in a process > memory structure and behaved as they do on most other OSs... Globals, > however, were short files maintained in ENV: (a logical name

Re: Environmental Variables

2006-03-13 Thread John Salerno
Sathyaish wrote: > In which physical file are the python environmental variables located? > I know I can access them using the: > > > os.environ.get('PYTHONSTARTUP') > > or > > os.environ.get('PYTHONPATH') > > > to get their values.

Re: Environmental Variables

2006-03-13 Thread Sathyaish
I recall now, the shells in Unix - a child inherited the variables declared in its parent but not vice-versa. It works the same way in DOS. So, I wasn't seeing it clearly earlier. I am seeing it clearly now. I was imagining that the PYTHONPATH had some default value on installation and was expectin

Re: Environmental Variables

2006-03-13 Thread Fredrik Lundh
Sathyaish wrote: > What's the deal with environmental variables? Are they specific to an > interpreter session? they're copied from the parent process when a new process is started, and any changes to them are local to the process. > That shouldn't be. that's how e

Re: Environmental Variables

2006-03-13 Thread Duncan Booth
Sathyaish wrote: > What's the deal with environmental variables? Are they specific to an > interpreter session? That shouldn't be. If you think that then complain to Microsoft, or even the people who developed Unix since that is what Microsoft based their environment variables

Re: Environmental Variables

2006-03-13 Thread Diez B. Roggisch
> was what I got. I checked the at DOS prompt (cmd) for PYTHONSTARTUP, > and I got an 'unrecognized program/command/batch file' interrupt. > > What's the deal with environmental variables? Are they specific to an > interpreter session? That shouldn't be. Yes th

Re: Environmental Variables

2006-03-13 Thread Sathyaish
ked the at DOS prompt (cmd) for PYTHONSTARTUP, and I got an 'unrecognized program/command/batch file' interrupt. What's the deal with environmental variables? Are they specific to an interpreter session? That shouldn't be. -- http://mail.python.org/mailman/listinfo/python-list

Re: Environmental Variables

2006-03-13 Thread Fredrik Lundh
Sathyaish wrote: > In which physical file are the python environmental variables located? > I know I can access them using the: > > > os.environ.get('PYTHONSTARTUP') > > or > > os.environ.get('PYTHONPATH') > > > to get their values. But o

Re: Environmental Variables

2006-03-13 Thread Diez B. Roggisch
Sathyaish wrote: > In which physical file are the python environmental variables located? > I know I can access them using the: > > > os.environ.get('PYTHONSTARTUP') > > or > > os.environ.get('PYTHONPATH') > > > to get their values.

Environmental Variables

2006-03-13 Thread Sathyaish
In which physical file are the python environmental variables located? I know I can access them using the: os.environ.get('PYTHONSTARTUP') or os.environ.get('PYTHONPATH') to get their values. But out of the program, if I need to look at them and alter their values, where