Unable to Run pip After Installing Python via mise on Windows 11 #3821
Replies: 3 comments
-
While my use of Windows is very limited, I faced this issue while trying to test mise-action on all platforms. Apparently the current instructions for installing on Windows are not really working. Scoop can be ignored for the moment as the PR was not merge yet and winget command should look like: winget install --accept-source-agreements jdx.mise
# really needed because the store published version is always outdated
mise self-update -y
# needed to avoid python AppStore install prompts from Windows
del /f /q "%USERPROFILE\AppData\Local\Microsoft\WindowsApps\python*.exe" >nul 2>&1 # later after manually updating PATH to include shims and a system reboot:
C:\Users\ssbarnea>echo %PATH%
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\PowerShell\7\;C:\Users\ssbarnea\AppData\Local\Microsoft\WindowsApps;C:\Users\ssbarnea\AppData\Local\Microsoft\WinGet\Links;C:\Users\ssbarnea\AppData\Local\mise\shims;
C:\Users\ssbarnea>type python
The system cannot find the file specified.
C:\Users\ssbarnea>dir C:\Users\ssbarnea\AppData\Local\mise\shims
Directory of C:\Users\ssbarnea\AppData\Local\mise\shims
30/12/2024 10:44 <DIR> .
30/12/2024 10:44 <DIR> ..
30/12/2024 10:44 39 python.cmd
30/12/2024 10:44 40 pythonw.cmd
30/12/2024 10:40 37 task.cmd Sadly even after these, mise seems to be broken:
Issues found so far
|
Beta Was this translation helpful? Give feedback.
-
I've same issues with winget install and python (specifically). Java and node are working fine. Installing mise via scoop is working for python without any issues. The problem with pip specifically is unlike the node/npm, there is no shim created for pip. Here is the output I got while manually upgrading pip:
So manually adding the Scripts folder to path fixed my issue with pip. |
Beta Was this translation helpful? Give feedback.
-
Similar issue here. It seems like mise isn't putting the Scripts folder for the current Python version into the PATH env var. It also doesn't create the python3, pip3 aliases for the Python distribs. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Hello!
I am new to mise and really love its elegant and intuitive operation. Thank you for providing such a wonderful tool!
I don't know why I can't run
pip
after install python.To Reproduce
Windows11 powershell
Additionally, I had to follow this guide to disable Microsoft Store's redirection when typing python
https://stackoverflow.com/questions/58754860/cmd-opens-windows-store-when-i-type-python
Finally, I got this:
Expected behavior
python3, python3.12, pip command is available
mise doctor
outputBeta Was this translation helpful? Give feedback.
All reactions