Unable to Run pip After Installing Python via mise on Windows 11 #3821
Replies: 5 comments 1 reply
-
|
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.cmdSadly 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.
-
|
The issue persists, I already had to add manually the shims directories to the PATH (I think mise activate should be simplified). Python is installed correctly, but I can't use call pip directly because no shims have been created for it. Seems like the issue may be caused by the quirks of the precompiled binaries. |
Beta Was this translation helpful? Give feedback.
-
|
I'm experiencing the same issue. After installing Python 3 globally with mise, I cannot use pip globally, but this problem doesn't occur when using pyenv. System Information:
After analysis, I believe the reason is that mise doesn't create corresponding shims or environment variables for pip. On Windows, pip.exe is typically installed in the Scripts directory, but mise seems to only add the Python main executable to PATH without properly handling the Scripts directory. Specifics:
In comparison, pyenv correctly sets up the Python environment, including the Scripts directory, making pip available globally. I hope the development team can address this issue to make mise's Python management functionality more complete. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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
pipafter 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 doctoroutputBeta Was this translation helpful? Give feedback.
All reactions