question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question about enviromental variables

See original GitHub issue

I’ve installed winpython today and I have a doubt about setting environmental variables. I understand that winpython aims to be a portable distribution but I wanted to be able to run python code from the cmd.exe and also use vim. So I’ve added the following directories to my %PATH%:

C:\winpython\python-3.4.2.amd64;C:\winpython\python-3.4.2.amd64\Scripts;C:\winpython\python-3.4.2.amd64\DLLs;C:\winpython\python-3.4.2.amd64\Lib

Now I can run scripts from the regular command prompt but I’m not sure that what I’ve done is correct. Is there an automatic way of setting the path (I’ve registered the distribution but the path was not modified)? Should I add more directories besides the mentioned ones?

Strangely I can run vim from WInPython CommandPrompt but not from the regular cmd.exe (when using the official python distribution I could run vim from command prompt without problem). This leads me to believe that I might be missing something. Any help and guidance will be appreciated. Thanks in advance!

Issue Analytics

  • State:open
  • Created 9 years ago
  • Comments:19 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
ankostiscommented, May 28, 2015

Dear @stonebig I receive at least once a month an “angry” request from people that i have recommended them using WinPython due to this issue.

The sequence of events is like this:

  1. They want to run a python project of mine with native libs and DLLs (i.e. numpy & win32api).
  2. I tell them “install WinPython and don’t forget to manually update your PATH” .
  3. They fail to do it 😃 and i help them over the phone into achieving the above task.
  4. Months later, when they upgrade their WinPython (i.e. to get more recent pandas).
  5. THEY FORGET TO FIX THE PATH.
  6. After days of trying to fix it, they come back shouting at me that my code is broken!

So, would it be possible to fix this once and for all? It should have little to do with HOME and Settings.

0reactions
stonebigcommented, May 28, 2015

Hi @ankostis,

What you suggest doesn’t look a good idea to me.

Maybe Winpython is not currently the right solution for your users / your use case.

I didn’t try it myself but maybe, maybe, pyzo would better fit your particular need ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Interview Questions and Answers for 'Environment variables'
Q1. What environment variables do I need to set on my machine in order to be able to run Java programs? Ans. CLASSPATH...
Read more >
What are environment variables in Windows? - Digital Citizen
All kinds of programs use environment variables to answer questions like: What's the name of the computer where I'm installed?
Read more >
Environmental Variables defined with other ... - Microsoft Learn
Hello folks: I'm using Windows 10. I have an environmental variable, UTILITIES_PATH, that identifies a folder with, among other things, ...
Read more >
Newest 'environment-variables' Questions - Super User
Environment variables are system-wide variables which share the same value. These variables are often parsed by the shell when executing commands, ...
Read more >
Examples of Environmental Questions | CDC
Examples of Environmental Questions ... This question set has two approaches to assessing the environmental factors the first inquires.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found