-
Notifications
You must be signed in to change notification settings - Fork 448
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
pipx install "cannot find the file specified" #705
Comments
Hi, some questions:
thanks! |
A quick thing to check, does |
@itsayellow I have run into the same issue on a newly installed Windows 10 machine: pipx >(setup:717): pipx version is 0.16.3
pipx >(setup:718): Default python interpreter is 'c:\\users\\malteøhlers\\.pyenv\\pyenv-win\\versions\\3.9.6\\python3.exe'
pipx >(package_name_from_spec:323): Determined package name: cowsay
pipx >(package_name_from_spec:324): Package name determined in 0.0s
creating virtual environment...
pipx >(run_subprocess:135): running c:\users\malteøhlers\.pyenv\pyenv-win\versions\3.9.6\python3.exe -m venv --without-pip C:\Users\MalteØhlers\.local\pipx\venvs\cowsay
creating shared libraries...
pipx >(run_subprocess:135): running c:\users\malteøhlers\.pyenv\pyenv-win\versions\3.9.6\python3.exe -m venv --clear C:\Users\MalteØhlers\.local\pipx\shared
Error: [WinError 2] The system cannot find the file specified
pipx >(rmdir:43): removing directory C:\Users\MalteØhlers\.local\pipx\venvs\cowsay
'c:\\users\\malteøhlers\\.pyenv\\pyenv-win\\versions\\3.9.6\\python3.exe -m venv --clear C:\\Users\\MalteØhlers\\.local\\pipx\\shared' failed
PS C:\Users\MalteØhlers\.local\pipx\venvs>
|
hi, sorry, i didn't see the previous responses until just now. I actually figured out what was the problem for me. It is that windows has python.exe and python3.exe located in the following folder: C:\Users\MyUserName\AppData\Local\Microsoft\WindowsApps I think this happens when installing python from the windows store. You can remove this folder from the PATH environment, or else just delete the python files from C:\Users\MyUserName\AppData\Local\Microsoft\WindowsApps. |
@kcinlober: Great that you found a solution, thanks for sharing! @itsayellow: Unfortunately it's not the same problem for me. I had already removed/disabled the python installer shims as part of the pyenv-win installation. I did it by going to |
I'm also getting this on a fresh Windows 10 install. I disabled the windows versions of python with
If I copy/paste that That is the correct location of python:
|
I have the exact same error with the exact same use case. I'm trying to install poetry with no luck. Has anyone managed to find a solution or a workaround? |
Hi, I just opened an issue with
Without the 3 in This does also not directly solve @mobaset 's problem as there the command can be executed in isolation. |
I think this might be caused by python/cpython#87915 in combination with the installation instructions on windows, which currently are
I think these instructions are just incompatible with 3.8 and below and for 3.9 and 3.10 versions before the linked bugfix. Maybe a more robust installation method on windows would be:
|
Apparently the Windows App Store version of python does not include the
So, perhaps we can depend on |
I think this is resolved by #879 |
when using
pipx install cowsay
(or any program) i get an error stating that the file cannot be found in the .local\pipx\shared directory (see --verbose code)I believe i installed pipx correctly (as per instructions) and same with pip (21.1.2)
The text was updated successfully, but these errors were encountered: