brew install pyenv
pyenv install 3.9.15
If xcode-select
is not installed (which weighs 20+ GB), then version 3.9.15 may not be available. The available versions can be specified with the pyenv install --list
command.
Copy code from https://install.python-poetry.org and paste it to a local file. Then run:
python3 YOUR_PYPOETRY_FILEPATH
A problem ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)
Solution:
The next step is to run:
/Users/home/.local/bin/poetry env use $(pyenv which python)
/Users/home/.local/bin/poetry install
And finally run the project from the src
directory:
/Users/home/.local/bin/poetry run python -m src.main --source-file short.ipynb --working-dir PATH_TO_SOURCE_FILE
Result:
Step 1 and 2 are clear on how to proceed with them. After I’d installed pypoetry and pyenv a problem occured with step 3. Had tried to solve this problem in various, yet nothing really helped.