question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pipx install "cannot find the file specified"

See original GitHub issue

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)

C:\WINDOWS\system32>pipx install cowsay --verbose
pipx >(setup:717): pipx version is 0.16.3
pipx >(setup:718): Default python interpreter is 'c:\\users\\nbreb\\appdata\\local\\programs\\python\\python39\\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\nbreb\appdata\local\programs\python\python39\python3.exe -m venv --without-pip C:\Users\nbreb\.local\pipx\venvs\cowsay
creating shared libraries...
pipx >(run_subprocess:135): running c:\users\nbreb\appdata\local\programs\python\python39\python3.exe -m venv --clear C:\Users\nbreb\.local\pipx\shared
Error: [WinError 2] The system cannot find the file specified

pipx >(rmdir:43): removing directory C:\Users\nbreb\.local\pipx\venvs\cowsay
'c:\\users\\nbreb\\appdata\\local\\programs\\python\\python39\\python3.exe -m venv --clear
C:\\Users\\nbreb\\.local\\pipx\\shared' failed

I believe i installed pipx correctly (as per instructions) and same with pip (21.1.2)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dmwyattcommented, Sep 20, 2021

I’m also getting this on a fresh Windows 10 install. I disabled the windows versions of python with Start > Manage App Execution Aliases and installed 3.9.6 with pyenv-win. I can start up python interpreter just fine by typing python, or python3, but get this error:

╰─ pipx install poetry --verbose                                                         ─╯
pipx >(setup:717): pipx version is 0.16.4
pipx >(setup:718): Default python interpreter is 'c:\\users\\dustin\\.pyenv\\pyenv-win\\versions\\3.9.6\\python3.exe'
pipx >(package_name_from_spec:323): Determined package name: poetry
pipx >(package_name_from_spec:324): Package name determined in 0.0s
creating virtual environment...
pipx >(run_subprocess:135): running c:\users\dustin\.pyenv\pyenv-win\versions\3.9.6\python3.exe -m venv --without-pip C:\Users\dustin\.local\pipx\venvs\poetry
creating shared libraries...
pipx >(run_subprocess:135): running c:\users\dustin\.pyenv\pyenv-win\versions\3.9.6\python3.exe -m venv --clear C:\Users\dustin\.local\pipx\shared
Error: [WinError 2] The system cannot find the file specified

pipx >(rmdir:43): removing directory C:\Users\dustin\.local\pipx\venvs\poetry
'c:\\users\\dustin\\.pyenv\\pyenv-win\\versions\\3.9.6\\python3.exe -m venv --clear
C:\\Users\\dustin\\.local\\pipx\\shared' failed

If I copy/paste that 'c:\\users\\dustin\\.pyenv\\pyenv-win\\versions\\3.9.6\\python3.exe -m venv --clear C:\\Users\\dustin\\.local\\pipx\\shared', it runs without error and without any output.

That is the correct location of python:

╰─ python3                                                                               ─╯
Python 3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.executable
'C:\\Users\\dustin\\.pyenv\\pyenv-win\\versions\\3.9.6\\python3.exe'
0reactions
rmcclellan-izocommented, Aug 1, 2022

I think this is resolved by #879

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I fix "pip"? - Stack Overflow
First check whether pip installed or not , in command prompt try pip --version , you should get something like this - pip...
Read more >
Troubleshooting - pipx
Troubleshooting · reinstall-all fixes most issues · Diagnosing problems using list · Specifying pipx options · Check for PIP_* environment variables · pipx...
Read more >
pipx - PyPI
Walkthrough: Running an Application in a Temporary Virtual Environment. This is an alternative to pipx install . pipx run downloads and runs the...
Read more >
How to Install Pip on Windows - ActiveState
Click to install Python's standard package manager, Pip, on Windows ... This means that Python cannot find the tool you're trying to run...
Read more >
Installing Brownie — Brownie 1.19.2 documentation
The recommended way to install Brownie is via pipx. ... If you have updated your brownie version from older versions, hardhat networks will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found