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.

EnvCommandError in Windows

See original GitHub issue
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Issue

Hi ~ after fresh install of poetry, I got the follow error when using poetry update in an virtural environment.

[EnvCommandError]
Command ['C:\\Users\\hoish\\env\\base\\Scripts\\python.exe', '-'] errored with the following return code 1, and output:

The system cannot find the path specified.
C:\Users\hoish\AppData\Local\Programs\Python\Python37
input was : import sys
if hasattr(sys, "real_prefix"):
    print(sys.real_prefix)
elif hasattr(sys, "base_prefix"):
    print(sys.base_prefix)
else:
    print(sys.prefix)
                                                                                                                        
update [--no-dev] [--dry-run] [--lock] [--] [<packages>]...

my setup as follow: poetry version: 0.12.17 virtual env path: C:\Users\hoish\env\base
original python path: C:\Users\hoish\AppData\Local\Programs\Python\Python37\python.exe python version: 3.7.4

note that the path that poetry cannot find does exist, and it is the value of sys.base_prefix

Is it related to my enviornment variables? Any idea?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

8reactions
razor-xcommented, Mar 29, 2020

Note that in Windows 10:

> where.exe python
C:\Users\Razor\AppData\Local\Microsoft\WindowsApps\python.exe

But this is NOT python. It is a program that opens the windows store to install python. If this is found in your PATH and poetry tries to use it AND you have NOT installed python from the windows store, you can get this error.

3reactions
batjkocommented, Mar 1, 2020

I have the same issue, but I don’t have Ansicon. Any other reason why I might get the error?

Read more comments on GitHub >

github_iconTop Results From Across the Web

EnvCommandError in Windows using Poetry - Random Wits
EnvCommandError in Windows using Poetry ... Poetry is a great dependency management tool in python. It's better than managing a flat file like...
Read more >
Windows 11 Poetry EnvCommandError - Stack Overflow
When I run Poetry Install , I get the following error. Creating virtualenv s in C:\Users\M\Desktop\Projects\S.venv. EnvCommandError. Command "C ...
Read more >
Configure a Poetry environment | PyCharm Documentation
Poetry is a tool that facilitates creating a Python virtual environment based on the project dependencies. You can declare the libraries your project ......
Read more >
Replit does not allocate enough resources when installing ...
So for a while, I've been trying to install a python package called distilbert-punctuator for a while at this point, but it keeps...
Read more >
poetry install fails, can't find sys : r/Python - Reddit
Versions: Windows 10 Python 3.7.7 Poetry version 1.0.5 I… ... install -vvv [EnvCommandError] Command ...
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