Here is a brief overview of the Python installation directory structure. To understand this better, let’s dive a bit deeper into the Python Installation Directory structure and the 3rd party packages directory structure. Also, as we are going to see in the next section, having different versions for the 3rd party libraries ( like NumPy, Pandas etc) is next to impossible if you don’t have a virtual environment. It can be done, by specifying the full path, but that is a pain to do it every time. What if I wanted to have the flexibility to call another version of Python ? say 3.6, 32-bit ? So, whenever I type in python on my command prompt, only this version ( Python 3.7, 64-bit) is called. Use echo command (on windows or Mac) to get the PATH variable You can use the following command to get the full path value. Which python version to call is based on the path variable. For example, I have a 64-bit python 3.7 installation on my system, installed for all users, and here is how the installation directory looks like.Īnd whenever I type in python on my console ( command prompt ), this executable gets called. However, when you install python, typically, there is only version that is readily available. Each python project requires different versions of Python and 3rd party packages.Įach python project requires different versions of Python and 3rd party packages. For example, say you are working with 2 projects. In real time, you will have to work with multiple projects. Python Installation Directory Structure.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |