Which file will be executed in Win10?

Kosh

I have 2 files with similar names which are stored in folders in my PATH variable. Which of them will be executed? Can it be decided according to which if them will be listed 1st in the output of the where command?

Example:

(2gis) C:\Users\Kosh>where python
C:\Anaconda3\envs\2gis\python.exe
C:\Anaconda3\python.exe
Anaksunaman

I have 2 files with similar names which are stored in folders in my PATH variable. Which of them will be executed?

Typically, the one that appears first in your PATH. In your example (from the command line) that is:

C:\Anaconda3\envs\2gis\python.exe

Note, however, that some programs (such as Pycharm or even individual Python scripts via shebangs) may have their own methods of choosing what installation of an executable to use.

Can it be decided according to which of them will be listed 1st in the output of the where command?

Likely only in cases where the program in question actually consults the Windows PATH.


It's also probably worth mentiong that standard Python virtual environments generally only apply to the current command window. That is, they often must be activated separately in any new command window created.


Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

In Java, which gets executed first, "+" or "++"?

which file is executed first in pytest?

Is this file unable to be executed in macOS?

How to generate a log file which includes the results of the samplers that are executed in the JMeter script

In which context is the MidiInProc callback executed?

Docker: git operations not permitted in dir which is mounted from Win10's to container running ubuntu

Is there a way to make an executable file that runs a python file in which a different python file is executed?

In which order are executed effects in NGRX

Which file gets executed before _Events.groovy in Grails?

Requirejs optimized file is not executed

Shortcut to batch file cannot be pinned to Win10 Start menu

Win10: Programatically/Automatically Email a file when it enters a Folder

What file is executed when pressing Win + Shift + S?

Deleting Hardlink To System File On Win10

Android Studio – Which .java file is executed when I run tests?

Which file is read and executed when interactive non-login bash session exits?

How can I get pid and its executable path information through the file which is executed by this pid?

'mvn' is not recognized as an internal or external command, operable program or batch file (Win10)

Batch file behaved unexpectedly on Win10

Will be executed everything which is into parenthesis first?

How can I open file location in a new window in win10 search result?

WIN10 - LAN file sharing / User permissions

In Win10 is there a fool proof way of discovering which App is displaying a given pop-up?

Where is the setting file(like .bashrc) for bash in win10?

Which constructor will be executed?

Dual-Boot with Win10 - Win Boot says 'invalid EFI file path' after restart

Is my query which will be executed correct?

How to define the JS file which contains the method to be executed in HTML

Script File is not executed in PDF file

TOP Ranking

HotTag

Archive