Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python installer for Windows: disable path length limit option not available

Tags:

python

According to this article, when you install Python 3.6 on Windows, the last screen of the installer looks like this:

enter image description here

I recently had some trouble with long pathnames in Windows, so I was looking for the "Disable path length limit" option in this screen. I installed Python 3.7 on Windows 10, but the "Disable path length limit" option was not visible. The Python documentation says nothing about this option.

How can I get this option to appear? Or is it no longer an option in v3.7?

like image 437
Hobbes Avatar asked Jun 25 '18 09:06

Hobbes


People also ask

What is disable path length limit in Python installation?

Disable the path limit length is recommended after Python setup is successful, because if python was installed in a directory with a path length greater than 260 characters, adding it to the path could fail. So don't worry about that action and proceed to it.

Do I have to disable path length limit?

Disabling the path length is better than shortening the path or the file name. Because if someone installed the Python in a directory more than a recommended length means it will cause the error. So using this option is much better.


1 Answers

I just updated Python to 3.7.2 and was not prompted and did not remember if I had set MAX_PATH over ride so with regedit navigate to...

Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled

If data value is 1 (true) then it is set and Python updates will not ask again. If 0 (false) then you can change the value in regedit to 1 and you are good to go. [win10]

like image 154
user10855154 Avatar answered Oct 09 '22 20:10

user10855154