where python.exe
C:\Users\XPS8910\AppData\Local\Programs\Python\Python310\python.exe --version C:\Users\XPS8910\AppData\Local\Programs\Python\Python310\python.exe import sys is64Bit = sys.maxsize > 2 ** 32 print("64bit") if is64Bit else print("32bit") quit()
cd C:\xps8700 mkdir Python64Bit3106Test cd Python64Bit3106Test C:\Users\XPS8910\AppData\Local\Programs\Python\Python310\python -m venv venv
venv\Scripts\activate.bat
pip install numpy pip install pandas pip install matplotlib
pip list
pip freeze >requirements.txt
pip install -r requirements.txt
deactivate cd.. rmdir Python64Bit3106Test
import sys import platform def get_info(id: int) -> str: match id: case 1: return '🌺 Python' case 2: return f'🌻 Python {platform.python_version()} ' case 3: is64Bit = sys.maxsize > 2 ** 32 bit = '64-Bit' if is64Bit else '32-Bit' return f'😅 Python {platform.python_version()} {bit}' case _: return '🐍 Hello, World!' if __name__ == '__main__': print(get_info(0)) print(get_info(1)) print(get_info(2)) print(get_info(3))