Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python 3.7 - activate venv error Parameter format not correct 65001 WINDOWS

I just updated my python version to 3.7 but every time i activate my virtualenv i got the following error message: parameter format not correct - 65001

Anybody knows what this mean and how to solve this issue?

Thanks in advance!

like image 815
Maki Avatar asked Jul 16 '18 09:07

Maki


2 Answers

I currently had the same issue. Please check this page here and this bug report.

The issue can be solved by modifying the codepage grep of activate.bat: for /f "tokens=2 delims=:." %%a in ('"%SystemRoot%\System32\chcp.com"') do (...

Just add the "." after "delims=:" in your activate.bat file. That worked for me.

like image 140
Uwe S Avatar answered Nov 14 '22 21:11

Uwe S


I have had the same Issue. It only happened in Powershell. Windows CMD worked just fine. And use activate.bat and not activate (without bat). I hope this helps.

like image 28
Kuchen Avatar answered Nov 14 '22 23:11

Kuchen