You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a Python virtual environment(PyVenv) by virtualenv , but after I activated it, the path of python&pip kept original.
When I typed in cmd: where python
it showed: C:\Users\[UserName]\AppData\Local\Programs\Python\Python310\python.exe
instead of: [path of PyVenv]\Scripts\python.exe
and virtualenv didn't feedback when this situation happened.
I checked system variables PATH by set path and saw it had messy codes, so did the activate.bat in PyVenv, and the messy codes appeared in the string of path.
After converting the encoding of activate.bat from UTF-8 to ANSI, the problem seemed solved.
Environment
OS: Windows 10 x64
pip list of the host python where virtualenv is installed:
Can you show the full output of -vvv as the template asked. Also how you installed the pyenv environment is important. We don't support pyenv-win AFAIK.
Can you show the full output of -vvv as the template asked. Also how you installed the pyenv environment is important. We don't support pyenv-win AFAIK.
The output was edited above. I installed the pyenv environments in Windows x64, with the installation path containing non-ascii characters.
Issue
I created a Python virtual environment(PyVenv) by virtualenv , but after I activated it, the path of python&pip kept original.
When I typed in cmd:
where python
it showed:
C:\Users\[UserName]\AppData\Local\Programs\Python\Python310\python.exe
instead of:
[path of PyVenv]\Scripts\python.exe
and virtualenv didn't feedback when this situation happened.
I checked system variables PATH by
set path
and saw it had messy codes, so did the activate.bat in PyVenv, and the messy codes appeared in the string of path.After converting the encoding of activate.bat from UTF-8 to ANSI, the problem seemed solved.
Environment
pip list
of the host python wherevirtualenv
is installed:Output of the virtual environment creation
Make sure to run the creation with
-vvv --with-traceback
:The text was updated successfully, but these errors were encountered: