Failed to create venv using python3.6 or lower
I want to create a venv for a project using python3.6. It's an old project and only compatible with python3.6 or lower. However, when I tried to create the venv, I kept getting following errors. The specific error message is listed below.

Error creating virtual env: Traceback (most recent call last): File "C:\Users\MYNAME\AppData\Local\Programs\Python\Python36\lib\runpy.py", line 185, in _run_module_as_main mod_name, mod_spec, code = _get_main_module_details(_Error) File "C:\Users\MYNAME\AppData\Local\Programs\Python\Python36\lib\runpy.py", line 219, in _get_main_module_details return _get_module_details(main_name) File "C:\Users\MYNAME\AppData\Local\Programs\Python\Python36\lib\runpy.py", line 128, in _get_module_details spec = importlib.util.find_spec(mod_name) File "C:\Users\MYNAME\AppData\Local\Programs\Python\Python36\lib\importlib\util.py", line 91, in find_spec return _find_spec(fullname, None) File " ", line 894, in _find_spec File " ", line 1157, in find_spec File " ", line 1131, in _get_spec File " ", line 1112, in _legacy_get_spec File " ", line 441, in spec_from_loader File " ", line 544, in spec_from_file_location File "C:\Program Files\JetBrains\PyCharm Community Edition 2024.3\plugins\python-ce\helpers\virtualenv-20.24.5.pyz\__main__.py", line 1 SyntaxError: future feature annotations is not defined

I googled this error message and it shows “future feature annotations” is only supported in python 3.7 or higher. As virtualenv-20.24.5.pyz\__main__.py is in a pyz file, I cannot comment out that line to mute this error. I am wondering if that means I cannot create venv for projects using python 3.6 or lower. Is there any work arounds?
OS: Windows 10
Python Version: 3.6
PIP Version: 18.1
Post is closed for comments.
Hi Wdai1998 , I have created a ticket here https://youtrack.jetbrains.com/issue/PY-78265 , assigned developer will take a look.
Please follow the issue for updates, feel free to vote and comment, and let us know if you need any help. If you're not familiar with YouTrack, please see https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications.
Please try to create the virtual environment in System terminal as suggested in the workaround section.
Apologies for the inconvenience.