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:
- Created 4 years ago
- Reactions:1
- Comments:5
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Note that in Windows 10:
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.
I have the same issue, but I don’t have Ansicon. Any other reason why I might get the error?