I recently upgraded my MacOS to Catalina and switched to the version of python3 bundled there (/usr/bin/python3) and removed the homebrew installation of Python3. Everything works great from the command line and from PyCharm but only from a virtual environment I've created myself (python3 -m venv).
When PyCharm creates a new virtual env (Preferences->Project->Project Interpreter) using /usr/bin/python3 as a base interpreter, PyCharm displays the following error
An environment is created, but it is unusable:
userid@localhost dash % source venv3/bin/activate
(venv3) userid@localhost dash % python3
dyld: Library not loaded: @executable_path/../Python3
Referenced from: /Users/userid/PycharmProjects/dash/venv3/bin/python3
Reason: image not found
zsh: abort python3
What is Pycharm using to create these virtual environments? Is there somewhere in Pycharm I can configure that? Do I have some remnants of the brew installed Python3 getting in its way possibly?