본문 바로가기
728x90
반응형

Programming/Python7

ModuleNotFoundError: No module named 'dotenv' pip install python-dotenv $ pip install python-dotenvCollecting python-dotenv  Using cached python_dotenv-1.0.1-py3-none-any.whl.metadata (23 kB)Using cached python_dotenv-1.0.1-py3-none-any.whl (19 kB)Installing collected packages: python-dotenvSuccessfully installed python-dotenv-1.0.1[notice] A new release of pip is available: 24.0 -> 24.2[notice] To update, run: pip install --upgrade pip 2024. 8. 22.
ModuleNotFoundError: No module named 'Crypto' Error EssageModuleNotFoundError: No module named 'Crypto'$ pip3 install crypto$ pip3 install pycrypto$ pip3 install cryptoCollecting crypto  Using cached crypto-1.4.1-py2.py3-none-any.whl.metadata (3.4 kB)Collecting Naked (from crypto)  Using cached Naked-0.1.32-py2.py3-none-any.whl.metadata (931 bytes)Collecting shellescape (from crypto)  Using cached shellescape-3.8.1-py2.py3-none-any.whl.meta.. 2024. 8. 22.
[python]문자열에 double quotes 추가 하는 방법 How to append double quotes to a string and store as new string? a = "Hello World"# Beautiful usage in pythonb = '"{}"'.format(a)# in python 3.6 (or above)b = f'"{a}"' 2024. 6. 19.
[Python] TypeError: unsupported operand type(s) for |: 'type' and 'type' Error Message TypeError: unsupported operand type(s) for |: 'type' and 'type' Error Cause  'type' and 'type' syntax is only supported in 3.10 or later. Use  Example ## Error Code def debug(msg: str | list): print(msg) ## Right Code def debug(msg: [str, list]): print(msg) debug("text") 2024. 6. 19.
728x90
반응형