Anaconda / Python: Change Anaconda Prompt User Path

Question:

I want to change my Anaconda Prompt User file path. Currently it is as follows:

enter image description here

I want it to change to: C:Usersu354590

How do I do this?

The current version of anaconda I have is:

Python 3.6.3 |Anaconda, Inc.| (default, Oct 15 2017, 03:27:45) [MSC v.1900 64 bit (AMD64)]
Asked By: PineNuts0

||

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.

Answered By: Jonathon McMurray

If you want to access folder you specified using Anaconda Prompt, try typing

cd C:Usersu354590

cd means Change Directory.

Answered By: BenSeedGangMu

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.

Answered By: Nigel D

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
Answered By: Bernad Peter

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.

Answered By: Ahmed Appas

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

Answered By: Sahir Shah

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

Answered By: ahmed taiko
Categories: questions Tags: , , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.