-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
poetry env list, can not output env path #2161
Comments
Hello @leileigong, which version of poetry are you using and which windows OS do you use? I've tried with poetry 1.0.5 under windows 10 within cmd and powershell and both show me the full path of the venv. fin swimmer |
Hello @finswimmer, cmd.exe: E:\FNTools>poetry config --list
cache-dir = "C:\\Users\\lei\\AppData\\Local\\pypoetry\\Cache"
virtualenvs.create = true
virtualenvs.in-project = false
virtualenvs.path = "{cache-dir}\\virtualenvs" # C:\Users\lei\AppData\Local\pypoetry\Cache\virtualenvs
E:\FNTools> powershell: PS E:\FNTools> poetry config --list
cache-dir = "C:\\Users\\lei\\AppData\\Local\\pypoetry\\Cache"
virtualenvs.create = true
virtualenvs.in-project = false
virtualenvs.path = "{cache-dir}\\virtualenvs" # C:\Users\lei\AppData\Local\pypoetry\Cache\virtualenvs
PS E:\FNTools> |
Hm, strange. How is python installed on your system? How have you installed poetry? |
python is installed via binary executable file. i install poetry as follow comand in powershell: (Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python |
@finswimmer I find the problem, i do not sure it's a bug or not. I create an virtual environment for my project via git bash shell. so on bash shell, i get an interpreter fntools-gSpOuuiR-py3.6: lei@DESKTOP-AM65SOJ /E/FNTools (master)
$ poetry env list
fntools-gSpOuuiR-py3.6 (Activated)
lei@DESKTOP-AM65SOJ /E/FNTools (master)
$ poetry env list --full-path
C:\Users\lei\AppData\Local\pypoetry\Cache\virtualenvs\fntools-gSpOuuiR-py3.6 (Activated) but, when i can not see the env on windows command shell. E:\FNTools>poetry env list
E:\FNTools> then I try command E:\FNTools>poetry env list
E:\FNTools>poetry install
Creating virtualenv fntools--CZiHDaJ-py3.6 in C:\Users\lei\AppData\Local\pypoetry\Cache\virtualenvs
Installing dependencies from lock file
Package operations: 37 installs, 0 updates, 0 removals
.......
E:\FNTools>poetry env list
fntools--CZiHDaJ-py3.6 (Activated)
E:\FNTools>poetry env list --full-path
C:\Users\lei\AppData\Local\pypoetry\Cache\virtualenvs\fntools--CZiHDaJ-py3.6 (Activated) But pipenv do not apper this problem on different command shell.
E:\FNTools>pipenv --venv
C:\Users\lei\.virtualenvs\FNTools-lKp0_7xw
E:\FNTools>
lei@DESKTOP-AM65SOJ /E/FNTools (master)
$ pipenv --venv
c:\Users\lei\.virtualenvs\FNTools-lKp0_7xw Maybe pipenv does better at this pointer. thanks. |
I also encountered this issue. |
I have the same issue but in my case, it is opposite to what OP has. There's no output for
|
I have figured it out. In my case it was because I was accessing the folder with a different case. Git Bash is case insensitive such that a folder named: |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).poetry env list, can not output env path
comand
poetry env list --full-path
output nothing on windows dos shell.but it works ok on bash shell, for example git bash shell.
The text was updated successfully, but these errors were encountered: