Anaconda / Python: Change Anaconda Prompt User Path
Question:
Answers:
Go to Start and search for "Anaconda Prompt" – right click this and choose "Open File Location", which will open a folder of shortcuts. Right click the "Anaconda Prompt" shortcut, choose "Properties" and you can adjust the starting dir in the "Start in"
box.
If you want to access folder you specified using Anaconda Prompt, try typing
cd C:Usersu354590
cd means Change Directory.
In Windows, if you have the shortcut in your taskbar, right-click the "Anaconda Prompt" icon, you’ll see:
- Anaconda Prompt
- Unpin from taskbar (if pinned)
- Close window
Right-click on "Anaconda Prompt" again.
Click "Properties"
Add the path you want your anaconda prompt to open up into in the "Start In:" section.
Note – you can also do this by searching for "Anaconda Prompt" in the Start Menu. The directions above are specifically for the shortcut.
Just Type the Drive Location you want to work with: This worked for me!
For example you want to change to D drive in windows:
D:
If you want to change to particular folder in the drive:
cd D:Newfolder
In both: Anaconda prompt and the old cmd.exe, you change your directory by first changing to the drive you want, by simply writing its name followed by a ‘:
‘, exe: F:
, which will take you to the drive named ‘F’ on your machine. Then using the command cd
to navigate your way inside that drive as you normally would.
Navigating to desired directory using CD is tedious. Anaconda was opening in C:WindowsSystem32 folder for me. So I created a batch file called goPy.bat containing the following
cd c:usersmynamedocumentspythonscripts
Jupyter Notebook
and saved it in WindowsSystem32
All I have to do is type in goPy and Jupyter Notebook would open in the desired working directory
if you want to change the contents of PATH
you are going to have to update the _conda_activate.bat and conda.bat files at this line
@SET PATH=!_sysp!;!_sysp!Librarymingw-w64bin;!_sysp!Libraryusrbin;!_sysp!Librarybin;!_sysp!Scripts;!_sysp!bin;%PATH%
and then you will have to close anaconda prompt and then re-open.
the _conda_activate.bat and conda.bat files are found at %%Users"user"anaconda3condabin
Go to Start and search for "Anaconda Prompt" – right click this and choose "Open File Location", which will open a folder of shortcuts. Right click the "Anaconda Prompt" shortcut, choose "Properties" and you can adjust the starting dir in the "Start in"
box.
If you want to access folder you specified using Anaconda Prompt, try typing
cd C:Usersu354590
cd means Change Directory.
In Windows, if you have the shortcut in your taskbar, right-click the "Anaconda Prompt" icon, you’ll see:
- Anaconda Prompt
- Unpin from taskbar (if pinned)
- Close window
Right-click on "Anaconda Prompt" again.
Click "Properties"
Add the path you want your anaconda prompt to open up into in the "Start In:" section.
Note – you can also do this by searching for "Anaconda Prompt" in the Start Menu. The directions above are specifically for the shortcut.
Just Type the Drive Location you want to work with: This worked for me!
For example you want to change to D drive in windows:
D:
If you want to change to particular folder in the drive:
cd D:Newfolder
In both: Anaconda prompt and the old cmd.exe, you change your directory by first changing to the drive you want, by simply writing its name followed by a ‘:
‘, exe: F:
, which will take you to the drive named ‘F’ on your machine. Then using the command cd
to navigate your way inside that drive as you normally would.
Navigating to desired directory using CD is tedious. Anaconda was opening in C:WindowsSystem32 folder for me. So I created a batch file called goPy.bat containing the following
cd c:usersmynamedocumentspythonscripts
Jupyter Notebook
and saved it in WindowsSystem32
All I have to do is type in goPy and Jupyter Notebook would open in the desired working directory
if you want to change the contents of PATH
you are going to have to update the _conda_activate.bat and conda.bat files at this line
@SET PATH=!_sysp!;!_sysp!Librarymingw-w64bin;!_sysp!Libraryusrbin;!_sysp!Librarybin;!_sysp!Scripts;!_sysp!bin;%PATH%
and then you will have to close anaconda prompt and then re-open.
the _conda_activate.bat and conda.bat files are found at %%Users"user"anaconda3condabin