-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pip install/upgrade fails on Windows if path too long #1221
Comments
cc/ @derekbekoe @anzaman |
Thanks for reporting this @tjprescott and @anzaman! Firstly, I've verified that it works on Linux (verified on Ubuntu) and OS X. After investigation, it looks like you've run into the Maximum Path Length Limitation on Windows. It just happens that the file path of Looking at the filepath of the file not found,
Another repro that excludes
On Windows, if the filepath happens to be too long, you'll see a |
Marking this as FAQ. |
This instruction does not work for Azure CLI 2.0. I am getting 0.10.9 version (azure -v). How can I upgrade to CLI 2.0? |
It's |
Removing the MAX_PATH Limitation for Python 3.6 -https://docs.python.org/3/using/windows.html#removing-the-max-path-limitation |
Installing Python 3.6.1 fixed the issue. I also had to remove the max-path-limitation during the installation proces. |
Long Path Tool can help you to remove blocked files or too long path files. You can easily fix file errors with this software. |
Linking to pypa/pip#3055, since that is the pip issue regarding this problem. |
Steps to repro on Windows CMD:
Yields the following error:
At this point, half of the packages have updated to the nightly version and the others have not. The only solution is to run
pip install azure-cli-<component> -I
for each package that was the nightly build in order to return to a stable state.The text was updated successfully, but these errors were encountered: