![]() ![]() I assume they are project root and the directory where the main.py in. I guessed the next step should be including the root directory of my project because when I saw the run configuration of main.py, both of "Add content roots to PYTHONPATH" and "Add source roots to PYTHONPATH" were checked. I see (venv) now so I assume I did activate virtual environment. In mac terminal, I activated virtual environment with ~ % source PycharmProjects/myProject/venv/bin/activate ![]() This is what I tried to run main.py in mac terminal. Now what I want to do is, running main.py in mac terminal. In "main.py", I imported my custom module "helper" and "pandas" and it works just fine when I run main.py in pycharm. I also made my custom module "helper" in the project directory. ![]() I made a python project using Pycharm with a virtual environment. and I will prepare setup.py as 's advised in the comment. So I think this question is in the wrong direction. Notice: I just found out that Pycharm terminal runs on x86_64 architecture and normal Mac terminal runs on arm64 architecture. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |