How to change directory to any folder where python is not installed ? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: How to change directory to any folder where python is not installed ? (/thread-25562.html) |
How to change directory to any folder where python is not installed ? - firashelou - Apr-03-2020 Hello everyone, I am using Python3.6.3 on a Windows OS what i would like know after searching and not finding the right answer on google, how to make the directory in any folder? to explain more: I usually start the cmd then type cd C:\Python3.6.3 and enter to load python but if i try to save any file using python code, this file will be saved in "C:\Python3.6.3" ! I don't want that ! what i want for example to save the file on desktop in a folder let's say called "pythonProjects" so how can i do that when my python is installed in the C:\Python3.6.3 folder ? Thanks in advance :) RE: How to change directory to any folder where python is not installed ? - Mateusz - Apr-03-2020 You have to add directory containing python.exe to system environment variable PATH. Then you can call python from every place you want. RE: How to change directory to any folder where python is not installed ? - firashelou - Apr-03-2020 (Apr-03-2020, 10:07 AM)Mateusz Wrote: You have to add directory containing python.exe to system environment variable PATH. Then you can call python from every place you want. thanks Mateusz for your reply, I assume the problem is with the Path variable because I added it manually I will reinstall python and make it automatic RE: How to change directory to any folder where python is not installed ? - snippsat - Apr-03-2020 Here is a install tutorial,longer down in Thread also how to fix/add environment variable Path after install. Python 3.8 (3.6-3.7) and pip installation under Windows RE: How to change directory to any folder where python is not installed ? - firashelou - Apr-03-2020 (Apr-03-2020, 10:42 AM)snippsat Wrote: Here is a install tutorial,longer down in Thread also how to fix/add environment variable Path after install. thank you snippsat |