본문 바로가기

mac3

Python PYTHONPATH에 디렉토리를 영구적으로 추가하려면 어떻게 해야 하나요?, Permanently add a directory to PYTHONPATH? 질문 Whenever I use sys.path.append, the new directory will be added. However, once I close python, the list will revert to the previous (default?) values. How do I permanently add a directory to PYTHONPATH? 언제나 sys.path.append를 사용하면 새로운 디렉토리가 추가됩니다. 그러나 파이썬을 닫으면 목록이 이전 (기본?) 값으로 돌아갑니다. PYTHONPATH에 디렉토리를 영구적으로 추가하는 방법은 무엇인가요? 답변 만약에 Mac이나 GNU/Linux 배포판에서 bash를 사용하고 있다면, 다음을 ~/.bashrc에 추가하세요. expor.. 2023. 11. 24.
Python 가상환경에서 파이썬 3 사용하기, Using Python 3 in virtualenv 질문 virtualenv를 사용하여 프로젝트를 기본 Python 버전(2.7)으로 실행합니다. 하지만 하나의 프로젝트에서는 Python 3.4를 사용해야 합니다. Mac에서 brew install python3를 사용하여 Python 3.4를 설치했습니다. 이제 새 버전을 사용하는 가상 환경을 만드는 방법은 무엇인가요? 예를 들어, sudo virtualenv envPython3입니다. 만약 다음과 같이 시도한다면: virtualenv -p python3 test 다음과 같은 결과가 나타납니다: Running virtualenv with interpreter /usr/local/bin/python3 Using base prefix '/usr/local/Cellar/python3/3.4.0_1/Framew.. 2023. 6. 27.
Flutter 플러터를 사용하여 윈도우 환경에서 iOS 기기에 대한 개발, Developing for iOS device in Windows environment with Flutter 질문 I'm new to Flutter, was just wondering if it's possible. I've tried building the demo code using intellij with given instruction (https://flutter.io/setup/). It runs well on android device, but can't find the option to compile and run on my iOS device. 답변 당신은 안드로이드 스튜디오 또는 비주얼 스튜디오 코드로 리눅스 또는 윈도우에서 주요 개발을 할 수 있습니다. 그런 다음 git을 사용하여 코드를 macOS로 이동하여 iOS 시뮬레이터/기기에서 Xcode로 테스트하고 앱 스토어에 배포합니다. 모든 개.. 2023. 5. 31.