-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Unable to run pip v. 10.0.0 with python 3.6.5 on Win 7 64 #5223
Comments
I'm also having the exact same issue since upgrading to pip 10. Happens whenever I try to install a package the old way (eg. pip install pylint). It will only work if I append "python -m" to the front of the command. Confirmed this on Python 3.7, and I am pretty sure it was happening with 3.6.5 as well. |
There is an extra quatation mark in the command, that caused this issue. |
@UserNotExist12 Well spotted, yes that would likely cause the problem. However, I've no idea why that extra quote would be appearing, or even what it's appearing in. @lbauchi can you provide a better example of how to reproduce this? "Upgrading from version 9.0.3" isn't that specific - it's worked when I've done it... One question, did you upgrade using "python -m pip install --upgrade pip" or "pip install --upgrade pip"? The latter is wrong (and this is noted in the docs) and will result in the 9.0.3 |
I upgraded pip using Error message:
|
Thanks. I do not get the same behaviour (Windows 10 64-bit, Python 3.6.2 64-bit):
|
OK. It appears to be because of the space in your path ( |
This appears to be a distlib bug. I've reported it, with a test case, at https://bitbucket.org/pypa/distlib/issues/104/generated-wrapper-scripts-fail-when-python We'll need to wait for a fix from distlib and then re-vendor. I don't see an obvious way we can work around this in pip, unfortunately. |
To revert pip version, I did following:
and uninstall+install all other affected packages. |
If needed we can downgrade our distlib too. |
That's a bit worrying, as it implies that reverting might not fix this issue either :-( If I get some time, I'll try dropping the previous version of distlib into a pip installation and see if this problem still occurs. If it does, we may have to wait for a fix from distlib :-( BTW, we should add a test for running pip from a directory with spaces on it. Appveyor's setup doesn't use spaces, nor does my normal setup (I use a standard "per user" installation). But the CPython "All users" installation goes to "Program Files" - so it will be a common scenario and we need to test for it. |
Same issue here |
Same issue here, downgraded again to 9.0.3. |
|
To help users to test this fix, I've created a branch
At least in my test, I can confirm that the fix is working. |
🎉 |
looks like |
now this warning pops up when I install something and yes
|
Could you file a new issue for that? Do mention what PATH is, in that issue. |
|
is the issue fixed now? if yes can someone guide me how to fix this on my end? |
@arjunkharbanda The fix is in master and will be released as 10.0.1 in the next couple of days. |
Closing as #5257 is now in master. |
how do you fix this on Windows 7 as it happens when I upgraded to pip 10 I have since reverted back to 9.0.3 until the version of 10 can be fixed |
@Kobra299, quoting from two comments earlier:
|
Sorry, did not find this issue and created duplicate. So I would like to copy here my comments:
src\pip_vendor\distlib\t32.exe and in the pip.exe itself.
python -m pip uninstall pip error disappeared.
|
@AndrewUshakov The wrapper script used by easy_install is very different from the one used by pip, so you'll have to be careful if you want to use pip to upgrade itself later. But that's why the size is different. (There may be other differences from having installed pip via easy_install, I'm not an expert in easy_install so I can't really comment). |
Running pip>=10.0.0 in the windows ci is failing and blocking changes. This commit is to workaround this issue, #165, until the upstream pypa/pip#5223 (or equivalent bug) is fixed in another pip release by capping pip to be <10.0.0.
Running pip>=10.0.0 in the windows ci is failing and blocking changes. This commit is to workaround this issue, #165, until the upstream pypa/pip#5223 (or equivalent bug) is fixed in another pip release by capping pip to be <10.0.0.
See pypa/pip#5223 - there is a pip 9 to 10 upgrade issue that prevents a direct `pip install ... --upgrade pip` from working. While the issue is closed in pip upstream, it still seems to cause problems.
ok i was having the same problem and this is what i did, just in case anyone needs help aka beginners |
This problem occurs for me with Python 3.7.2 on Windows 10. The pip.exe has a hardcoded path to |
facing same error with python3.7.0 , fatal error at pip installed python3 in C:\Programs files\Python37 Also one installation is present in C:\Users\User\appdata\roaming\python37 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description:
Upgrading from version 9.0.3 causes pip not to work anymore with the error message:
Fatal error in launcher: Unable to create process using '""c:\program files\python36\python.exe" "C:\Program Files\Python36\Scripts\pip.exe"
The same happens with pip3.exe or pip36.exe (of course, they are identical, but using them could help to solve path conflicts).
The only way to solve the problem was to rollback to version 9.0.3. (I also tried version 9.0.1 just as a distraction :-), and it worked too ).
Of course, I tried a plethora of solutions to be able to keep version 10.0.0, then I gave up and rolled back to version 9.0.3
What I've run:
From PowerShell or DOS window:
< python -m pip install -U pip > to upgrade pip to 10.0.0. Everything went well.
< python -m pip install pip==9.0.3 > to rollback
The text was updated successfully, but these errors were encountered: